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:
8
.github/workflows/build-preview.yml
vendored
8
.github/workflows/build-preview.yml
vendored
@@ -10,7 +10,7 @@ jobs:
|
|||||||
name: Build Preview Site and Upload Build Artifact
|
name: Build Preview Site and Upload Build Artifact
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
actions: read
|
actions: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -34,9 +34,15 @@ jobs:
|
|||||||
working-directory: app
|
working-directory: app
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
|
- name: List build output
|
||||||
|
run: ls -la app/dist
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: preview-build
|
name: preview-build
|
||||||
path: app/dist
|
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 }}"
|
||||||
Reference in New Issue
Block a user