mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
chore: enhance GitHub Actions workflow with additional steps and permissions
- Updated permissions to allow writing actions. - Added a step to list build output for verification. - Included a verification step to confirm artifact upload completion.
This commit is contained in:
parent
5aa80f8c96
commit
2291e9a5d1
10
.github/workflows/build-preview.yml
vendored
10
.github/workflows/build-preview.yml
vendored
@ -10,7 +10,7 @@ jobs:
|
||||
name: Build Preview Site and Upload Build Artifact
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
actions: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -34,9 +34,15 @@ jobs:
|
||||
working-directory: app
|
||||
run: pnpm build
|
||||
|
||||
- name: List build output
|
||||
run: ls -la app/dist
|
||||
|
||||
- name: Upload build artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: preview-build
|
||||
path: app/dist
|
||||
retention-days: 1
|
||||
retention-days: 1
|
||||
|
||||
- name: Verify artifact upload
|
||||
run: echo "Artifact upload completed with ID ${{ steps.upload-artifact.step.outputs.artifact-id }}"
|
Loading…
Reference in New Issue
Block a user