-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Due to recursion protection GitHub actions does not trigger the …
…publish event when the release is created via another action. Instead use the workflow_run event to chain Publish with Deploy Website
- Loading branch information
1 parent
7610b33
commit a702686
Showing
2 changed files
with
9 additions
and
20 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 |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
id-token: write | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v3 | ||
|
@@ -32,6 +32,10 @@ jobs: | |
env: | ||
CI: true | ||
run: npm install | ||
|
||
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies | ||
run: npm audit signatures | ||
|
||
- name: Build the plugin | ||
run: npm run build | ||
|
||
|
@@ -45,19 +49,3 @@ jobs: | |
run: | | ||
VERSION=$(jq -r ".version" package.json) | ||
echo "::set-output name=version::$VERSION" | ||
- name: Deploy the website | ||
env: | ||
VERSION: ${{ steps.get_version.outputs.version }} | ||
TOKEN: ${{ secrets.FORMBUILDER_SITE_PAT }} | ||
run: | | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
git clone https://${TOKEN}@github.com/kevinchappell/formBuilder-site.git | ||
cd formBuilder-site | ||
npm version ${{ env.VERSION }} | ||
# Commit and push the changes | ||
git commit -am "Update site to ${{ env.VERSION }}" | ||
git push https://${TOKEN}@github.com/kevinchappell/formBuilder-site.git master |