Skip to content

Commit

Permalink
Merge pull request #1110 from anatawa12/one-year-blog-post
Browse files Browse the repository at this point in the history
ci: fix updating website will not update website
  • Loading branch information
anatawa12 authored Jun 27, 2024
2 parents fd22dcf + 4ea37bf commit 2d822d4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/update-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,20 @@ jobs:
- name: Restore .docs/config.toml
run: git restore --staged --worktree .docs/config.toml

- name: Upload zip file
run: |
WEBSITE_NAME="website-${GITHUB_RUN_ID}.zip"
mv build/website.zip "build/$WEBSITE_NAME"
gh release upload "$VERSION" "build/$WEBSITE_NAME"
publish-vpm:
uses: anatawa12/vpm.anatawa12.com/.github/workflows/update-package.yml@master
needs: create-release
if: inputs.publish
with:
#version: No version to update package only
environment: vpm.anatawa12.com
website_zip: https://github.com/anatawa12/AvatarOptimizer/releases/download/v${{ inputs.version }}/website.zip
website_zip: https://github.com/anatawa12/AvatarOptimizer/releases/download/v${{ inputs.version }}/website-${{ github.run_id }}.zip
website_path: ${{ inputs.prerelease && 'beta' || '' }}
secrets:
TOKEN: ${{ secrets.VPM_GITHUB_PAT }}

0 comments on commit 2d822d4

Please sign in to comment.