Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyPenguins committed Mar 9, 2025
1 parent fec78fa commit 3729c36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,16 @@ jobs:
file_name=$(echo $tag_name | sed "s#/#_#")
zip -r "splashkitonline-static-site-$file_name.zip" built-site
echo "splashkitonline-static-site-$file_name.zip" >> ../../../script/.github/workflows/release_assets.txt
echo "splashkitonline-static-site-$file_name.zip" >> ./script/.github/workflows/release_assets.txt
python3 ../../../script/.github/workflows/release.py "update" "${{ secrets.GITHUB_TOKEN }}" "WhyPenguins/SplashkitOnline" "$tag_name" "${{ github.sha }}" yes "../../../script/.github/workflows/release_assets.txt" "# Static Site Build (#$tag_name})\nA static build of $tag_name, used in the live deployment :smiley:"
python3 ./script/.github/workflows/release.py "update" "${{ secrets.GITHUB_TOKEN }}" "WhyPenguins/SplashkitOnline" "$tag_name" "${{ github.sha }}" yes "./script/.github/workflows/release_assets.txt" "# Static Site Build (#$tag_name})\nA static build of $tag_name, used in the live deployment :smiley:"
- name: Or delete the release...
if: ${{ github.event_name == 'pull_request_target' && github.event.action == 'closed' }}
run: |
echo " PR Release Delete! ${{ github.ref_name }}"
if [ github.event.action == "closed" ]; then
python3 ../../../script/.github/workflows/release.py "delete" "${{ secrets.GITHUB_TOKEN }}" "WhyPenguins/SplashkitOnline" "pr/${{ github.event.number }}"
python3 ./script/.github/workflows/release.py "delete" "${{ secrets.GITHUB_TOKEN }}" "WhyPenguins/SplashkitOnline" "pr/${{ github.event.number }}"
fi
# The following bits assume the GitHub Pages site is about to be updated with this new release preview
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/deploy_github_site.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Deploy current 'deployed'/PR previews

on:
workflow_run:
workflows: ['Build Static Site']
types: [completed]
workflow_run:
workflows: ['Build Static Site']
types:
- completed

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down

0 comments on commit 3729c36

Please sign in to comment.