Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0354c1a
First attempt at running as github actions
jgebal Nov 24, 2021
de73451
Building github actions
jgebal Nov 24, 2021
1c3004a
Adding OJDBC Download
jgebal Nov 25, 2021
0b9f937
Adding TimeZone
jgebal Nov 25, 2021
0ce0368
Adding 21xe-full
jgebal Nov 25, 2021
4921610
Switching to 21c-xe-slim
jgebal Nov 30, 2021
09d3261
Fixing build numbers and sonar analysis configuration.
jgebal Dec 2, 2021
e3e8c79
Added update of project version and build number.
jgebal Jan 4, 2022
e841b9b
Fixing docs update
jgebal Jan 5, 2022
cae6a35
Update env variables
jgebal Jan 5, 2022
7e87558
Formatting and cleanup
jgebal Jan 5, 2022
9307524
Adding publishing of project version updates
jgebal Jan 5, 2022
169f61c
Update of token
jgebal Jan 6, 2022
82c4d21
Testing publishing of documentation to gh-pages
jgebal Jan 6, 2022
532be8d
Externalizing env variables.
jgebal Jan 6, 2022
12757ea
Added job names.
jgebal Jan 7, 2022
ddd3862
Fixing multi-line if statement.
jgebal Jan 7, 2022
5b64836
Implementing Release Action
jgebal Jan 7, 2022
28cdee3
Refactoring and adding dispatch of other repositories
jgebal Jan 8, 2022
0e6eb70
Testing triggering of build process on other repositories
jgebal Jan 9, 2022
06f3556
Enabling build and slack notification
jgebal Jan 10, 2022
6cd8b16
Update documentation publish condition
jgebal Jan 10, 2022
1fc87de
Enable dependency on downstream job dispatch
jgebal Jan 10, 2022
31cc42d
Final cleanup of travis build leftovers.
jgebal Jan 13, 2022
b94a3f7
Addding `utPLSQL-java-api` repo to dispatch post-build.
jgebal Jan 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Implementing Release Action
  • Loading branch information
jgebal committed Jan 13, 2022
commit 5b64836a255df7f69846ee7224db7ad1ded6e6e8
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ jobs:

publish:
name: Deploy documentation
needs: [build-and-test]
needs: [ build-and-test ]
concurrency: publish
runs-on: ubuntu-latest
if: |
Expand Down Expand Up @@ -207,7 +207,7 @@ jobs:
slack-workflow-status:
if: always()
name: Post Workflow Status To Slack
needs: [build-and-test, publish]
needs: [ build-and-test, publish ]
runs-on: ubuntu-latest
steps:
- name: Slack Workflow Notification
Expand All @@ -219,3 +219,4 @@ jobs:
# Optional Input
name: 'Github Actions[bot]'
icon_url: 'https://octodex.github.com/images/mona-the-rivetertocat.png'
#TODO - add triggering of builds on other repositories
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
name: Create and publish release artifacts
env:
PULL_REQUEST_NAME: ${{github.head_ref}}
PULL_REQUEST_BRANCH: ${{github.head_ref}}
REPO_SLUG: ${{github.repository}}
PR_SLUG: ${{github.repository}}

on:
release:
types: [ created ]
types: [ released ]
#See: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#example-using-multiple-events-with-activity-types-or-configuration

defaults:
Expand All @@ -17,6 +11,7 @@ defaults:
jobs:

publish:
name: Deploy documentation
concurrency: publish
runs-on: ubuntu-latest

Expand All @@ -37,9 +32,6 @@ jobs:
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"

- name: Install MkDocs
run: pip install mkdocs

- name: Update project version & build number in source code and documentation
run: .travis/update_project_version.sh

Expand All @@ -48,11 +40,52 @@ jobs:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
run: .travis/push_docs_to_github_io.sh

upload_artifacts:
name: Upload archives
concurrency: upload
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Update project version & build number in source code and documentation
run: .travis/update_project_version.sh

- name: Setup git config
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"

- name: Build html documentation
run: |
pip install mkdocs
mkdocs build --clean --strict
rm -rf docs/*
cp -r -v site/* docs
git add .
git commit -m "tmp commit of HTML documentation for building a release archive"

- name: Build release archives
run: |
git archive --prefix=utPLSQL/ -o utPLSQL.zip --format=zip HEAD
git archive --prefix=utPLSQL/ -o utPLSQL.tar.gz --format=tar.gz HEAD
md5sum utPLSQL.zip --tag > utPLSQL.zip.md5
md5sum utPLSQL.tar.gz --tag > utPLSQL.tar.gz.md5

- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
utPLSQL.zip
utPLSQL.zip.md5
utPLSQL.tar.gz
utPLSQL.tar.gz.md5

slack-workflow-status:
if: always()
name: Post Workflow Status To Slack
needs: [publish]
needs: [ publish, upload_artifacts ]
runs-on: ubuntu-latest
steps:
- name: Slack Workflow Notification
Expand All @@ -65,5 +98,3 @@ jobs:
name: 'Github Actions[bot]'
icon_url: 'https://octodex.github.com/images/mona-the-rivetertocat.png'

# TODO - add building of release archive
# TODO - add publishing of release
6 changes: 0 additions & 6 deletions .travis/build_docs.sh

This file was deleted.

18 changes: 0 additions & 18 deletions .travis/build_release_archive.sh

This file was deleted.