-
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
2 changed files
with
22 additions
and
8 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
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,11 +1,19 @@ | ||
name: Parallel Release | ||
on: | ||
workflow_call: | ||
secrets: | ||
GPG_SIGNING_KEY: | ||
required: true | ||
GH_TOKEN: | ||
required: true | ||
|
||
jobs: | ||
prepare-release: | ||
name: Prepare Release | ||
runs-on: ubuntu-latest | ||
env: | ||
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} # All commits must be verified | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
outputs: | ||
release-version: ${{ steps.get-version.outputs.release-version }} | ||
test-infos: ${{ steps.get-test-infos.outputs.test-infos }} | ||
|
@@ -53,6 +61,16 @@ jobs: | |
run: | | ||
AZLE_VERBOSE=true npx azle install-global-dependencies --rust --wasi2ic | ||
# TODO we should use some Action-specific bot account | ||
- 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 | ||
git -k | ||
- name: Update version and build templates | ||
run: | | ||
VERSION=${{ steps.get-version.outputs.release-version }} | ||
|
@@ -65,14 +83,6 @@ jobs: | |
echo "We are about to template --experimental" | ||
npx azle template --experimental | ||
- name: Commit and push changes | ||
run: | | ||
git config --global user.name 'Jordan Last' | ||
git config --global user.email '[email protected]' | ||
git add --all | ||
git commit -m "Prepare release ${{ steps.get-version.outputs.release-version }}" | ||
git push origin "${{ github.event.pull_request.head.ref || github.ref_name }}" | ||
- name: Publish to npm | ||
run: | | ||
if [[ "${{ steps.get-version.outputs.release-version }}" == *"-rc."* ]]; then | ||
|