-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build | ||
name: Deploy release candidate | ||
on: | ||
push: | ||
branches: | ||
|
@@ -25,11 +25,10 @@ jobs: | |
directories: | | ||
./examples | ||
./tests | ||
exclude_dirs: '' | ||
determine-is-manual-release: | ||
if: ${{ contains(github.head_ref, 'release--') }} | ||
name: Determine If Tests Should Run | ||
name: Determine if tests should run | ||
runs-on: ubuntu-latest | ||
outputs: | ||
is_manual_release: ${{ steps.determine_is_manual_release.outputs.is_manual_release }} | ||
|
@@ -53,7 +52,7 @@ jobs: | |
fi | ||
release-candidate-deploy: | ||
name: Deploy Release Candidate for Release Branches | ||
name: Deploy release candidate for release branches | ||
# Only run this job if it's a release branch. This job will run instead of run-tests and will automatically publish another commit which will be tested | ||
if: ${{ !needs.determine-is-manual-release.outputs.is_manual_release }} | ||
needs: | ||
|
@@ -79,12 +78,12 @@ jobs: | |
DFXVM_INIT_YES=true DFX_VERSION=${{ env.DFX_VERSION }} sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)" | ||
echo "$HOME/.local/share/dfx/bin" >> $GITHUB_PATH | ||
# TODO we should use some Action-specific bot account | ||
- name: Configure git for Publishing Release | ||
- name: Configure git for publishing release | ||
run: | | ||
git config --global user.name 'Jordan Last' | ||
git config --global user.email '[email protected]' | ||
git config --global commit.gpgsign true | ||
echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import | ||
git config --global user.signingkey C8B77BCBE16CD2B94B43F9C8757397B82D4ED7B0 | ||
- name: Publish Release | ||
- name: Publish release | ||
run: ./.github/scripts/publish_github_action.sh $RELEASE_VERSION ${{ toJSON(needs.get-all-test-dirs.outputs.all_tests).*.path }} |