Update prod.yml
This commit is contained in:
parent
c144ab7921
commit
1d18298aa9
34
.github/workflows/prod.yml
vendored
34
.github/workflows/prod.yml
vendored
@ -51,20 +51,20 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
trunk build --release
|
trunk build --release
|
||||||
|
|
||||||
- name: commit frontend release build
|
# - name: commit frontend release build
|
||||||
run: |
|
# run: |
|
||||||
git config --global user.name "GitHub Action"
|
# git config --global user.name "GitHub Action"
|
||||||
git config --global user.email "actions@github.com"
|
# git config --global user.email "actions@github.com"
|
||||||
git add frontend/dist -f
|
# git add frontend/dist -f
|
||||||
git diff --staged --quiet || (git commit -m "release: frontend build ${{ github.sha }} [skip ci]" && git push)
|
# git diff --staged --quiet || (git commit -m "release: frontend build ${{ github.sha }} [skip ci]" && git push)
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# - name: upload frontend artifacts
|
- name: upload frontend artifacts
|
||||||
# uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
# with:
|
with:
|
||||||
# name: frontend-artifacts
|
name: frontend-artifacts
|
||||||
# path: ./frontend/dist
|
path: ./frontend/dist
|
||||||
|
|
||||||
- name: run tests
|
- name: run tests
|
||||||
run: |
|
run: |
|
||||||
@ -77,10 +77,10 @@ jobs:
|
|||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# - name: download frontend artifacts
|
- name: download frontend artifacts
|
||||||
# uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
# with:
|
with:
|
||||||
# name: frontend-artifacts
|
name: frontend-artifacts
|
||||||
|
|
||||||
# - name: display structure of downloaded files
|
# - name: display structure of downloaded files
|
||||||
# run: ls -R
|
# run: ls -R
|
||||||
|
Loading…
x
Reference in New Issue
Block a user