Skip to content

Commit

Permalink
ci: use upstream server for pages
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Spooren <mail@aparcar.org>
  • Loading branch information
aparcar committed Sep 23, 2024
1 parent e54b0bc commit 759cece
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,24 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Setup config.json
run: |
cd www/
sed -i "s;%GIT_VERSION%;$(git describe --tags);" index.js
sed -i 's;image_url: "../misc",;image_url: "https://downloads.openwrt.org",;' config.js
sed -i "s; //show_snapshots; show_snapshots;" config.js
sed -i "s; versions; // versions;" config.js
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: "www/"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 759cece

Please sign in to comment.