Skip to content

Commit f4db7af

Browse files
committed
Update Release to Github Pages workflow
1 parent 30b98fb commit f4db7af

2 files changed

Lines changed: 0 additions & 52 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ concurrency:
1616

1717
jobs:
1818
deploy:
19-
if: github.actor != 'github-actions[bot]'
2019
runs-on: ubuntu-latest
2120
environment:
2221
name: github-pages

.github/workflows/sync-version.yml

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@ on:
66

77
permissions:
88
contents: write
9-
pages: write
10-
id-token: write
119

1210
jobs:
1311
update-version:
1412
runs-on: ubuntu-latest
15-
outputs:
16-
committed: ${{ steps.commit.outputs.committed }}
1713
steps:
1814
- name: Check out repository
1915
uses: actions/checkout@v4
@@ -106,50 +102,3 @@ jobs:
106102
set -euo pipefail
107103
COMMIT_SHA=$(git rev-parse HEAD)
108104
gh release edit "$TAG_NAME" --target "$COMMIT_SHA"
109-
110-
deploy-pages:
111-
runs-on: ubuntu-latest
112-
needs: update-version
113-
if: needs.update-version.outputs.committed == 'true'
114-
environment:
115-
name: github-pages
116-
url: ${{ steps.deploy.outputs.page_url }}
117-
steps:
118-
- name: Check out repository
119-
uses: actions/checkout@v4
120-
with:
121-
ref: ${{ github.event.repository.default_branch }}
122-
fetch-depth: 0
123-
124-
- name: Ensure latest default branch
125-
run: |
126-
set -euo pipefail
127-
BRANCH='${{ github.event.repository.default_branch }}'
128-
git fetch origin "$BRANCH"
129-
git checkout "$BRANCH"
130-
git pull --ff-only origin "$BRANCH"
131-
132-
- name: Configure Pages
133-
uses: actions/configure-pages@v4
134-
135-
- name: Prepare site artifact
136-
run: |
137-
set -euo pipefail
138-
rm -rf dist
139-
mkdir -p dist
140-
cp index.html dist/
141-
[ -f favicon.ico ] && cp favicon.ico dist/
142-
[ -f company_logo.png ] && cp company_logo.png dist/
143-
shopt -s nullglob
144-
for file in ttn_decoder-*.js; do
145-
cp "$file" dist/
146-
done
147-
148-
- name: Upload artifact
149-
uses: actions/upload-pages-artifact@v3
150-
with:
151-
path: dist
152-
153-
- name: Deploy to GitHub Pages
154-
id: deploy
155-
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)