-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(gha): update myparcelnl actions to v3
- Loading branch information
1 parent
70e105f
commit 797d498
Showing
5 changed files
with
73 additions
and
52 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 was deleted.
Oops, something went wrong.
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,21 +1,60 @@ | ||
name: '♻️ Rebase pull requests' | ||
name: 'Push to main 🚀' | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
name: 'Deploy to GHP and AWS' | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.client_payload.pull_request.head.ref }} | ||
|
||
- uses: myparcelnl/actions/setup-app-credentials@v3 | ||
id: credentials | ||
with: | ||
app-id: ${{ secrets.MYPARCEL_APP_ID }} | ||
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }} | ||
|
||
- uses: ./.github/actions/build | ||
|
||
- uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: src/.vuepress/dist | ||
token: ${{ steps.credentials.outputs.token }} | ||
|
||
- uses: reggionick/s3-deploy@v3 | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
with: | ||
bucket-region: ${{ secrets.AWS_DEFAULT_REGION }} | ||
bucket: ${{ secrets.S3_BUCKET }} | ||
delete-removed: true | ||
dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} | ||
folder: src/.vuepress/dist | ||
private: true | ||
|
||
rebase-prs: | ||
name: 'Rebase open pull requests' | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: myparcelnl/actions/setup-git-credentials@main | ||
- uses: myparcelnl/actions/setup-app-credentials@v3 | ||
id: credentials | ||
with: | ||
token: ${{ secrets.GH_REPO_TOKEN }} | ||
app-id: ${{ secrets.MYPARCEL_APP_ID }} | ||
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }} | ||
|
||
- uses: peter-evans/rebase@v2 | ||
with: | ||
token: ${{ secrets.GH_REPO_TOKEN }} | ||
token: ${{ steps.credentials.outputs.token }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.