parent
24c5e5b418
commit
bb1ce601be
1 changed files with 6 additions and 6 deletions
|
|
@ -5,7 +5,7 @@ on:
|
|||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
environment: ${{ github.ref_name }}
|
||||
environment: ${{ env.FORGEJO_REF_NAME }}
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
|
@ -22,7 +22,7 @@ jobs:
|
|||
- name: Build Astro project
|
||||
run: npm run build
|
||||
|
||||
- name: Deploy dist to dist-${{ github.ref_name }}
|
||||
- name: Deploy dist to dist-${{ env.FORGEJO_REF_NAME }}
|
||||
run: |
|
||||
git config user.name "forgejo-actions[bot]"
|
||||
git config user.email "forgejo-actions[bot]@users.noreply.local"
|
||||
|
|
@ -33,10 +33,10 @@ jobs:
|
|||
git add dist
|
||||
git commit -m "Update dist/ [skip ci]"
|
||||
|
||||
git push \
|
||||
https://x-access-token:${{ secrets.GITHUB_TOKEN }}@${{ github.server_url#https:// }}/{{ github.repository }} \
|
||||
temp-build:dist-${{ github.ref_name }} \
|
||||
--force
|
||||
# git push \
|
||||
# https://x-access-token:${{ secrets.GITHUB_TOKEN }}@${{ github.server_url#https:// }}/{{ github.repository }} \
|
||||
# temp-build:dist-${{ env.FORGEJO_REF_NAME }} \
|
||||
# --force
|
||||
|
||||
- name: Trigger deployment webhook
|
||||
env:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue