Update prod.yml
This commit is contained in:
parent
6846986616
commit
bd9023b3a3
18
.github/workflows/prod.yml
vendored
18
.github/workflows/prod.yml
vendored
@ -51,6 +51,15 @@ jobs:
|
||||
run: |
|
||||
trunk build --release
|
||||
|
||||
- name: commit frontend release build
|
||||
run: |
|
||||
git config --global user.name "GitHub Action"
|
||||
git config --global user.email "actions@github.com"
|
||||
git add frontend/dist -f
|
||||
git diff --staged --quiet || (git commit -m "release: frontend build ${{ github.sha }} [skip ci]" && git push)
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: upload frontend artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
@ -77,15 +86,6 @@ jobs:
|
||||
run: ls -R
|
||||
working-directory: ./frontend/dist
|
||||
|
||||
- name: commit frontend release build
|
||||
run: |
|
||||
git config --global user.name "GitHub Action"
|
||||
git config --global user.email "actions@github.com"
|
||||
git add frontend/dist -f
|
||||
git diff --staged --quiet || (git commit -m "release: frontend build ${{ github.sha }} [skip ci]" && git push)
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: shuttle-hq/deploy-action@main
|
||||
with:
|
||||
deploy-key: ${{ secrets.SHUTTLE_API_KEY }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user