Update prod.yml

This commit is contained in:
itsscb 2024-08-29 13:18:20 +02:00 committed by GitHub
parent c144ab7921
commit 1d18298aa9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,20 +51,20 @@ 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: 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:
# name: frontend-artifacts
# path: ./frontend/dist
- name: upload frontend artifacts
uses: actions/upload-artifact@v4
with:
name: frontend-artifacts
path: ./frontend/dist
- name: run tests
run: |
@ -77,10 +77,10 @@ jobs:
- name: checkout
uses: actions/checkout@v4
# - name: download frontend artifacts
# uses: actions/download-artifact@v4
# with:
# name: frontend-artifacts
- name: download frontend artifacts
uses: actions/download-artifact@v4
with:
name: frontend-artifacts
# - name: display structure of downloaded files
# run: ls -R