Skip to content

Commit 18e2a50

Browse files
committed
Moved the deployment workflow back into the
1 parent 6e66e8a commit 18e2a50

File tree

3 files changed

+22
-41
lines changed

3 files changed

+22
-41
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
100100
cp -r docs/* .
101101
102-
sudo rm -rf docs Writerside .github .idea .editorconfig .gitignore Dockerfile README.md
102+
sudo rm -rf docs Writerside .github .idea .editorconfig .gitignore Dockerfile README.md ${{ env.ARTIFACT }}
103103
104104
git add .
105105
git commit -am "Automatic deployment"

.github/workflows/preview-deploy.yml

+21-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ env:
1414

1515
permissions:
1616
contents: write
17+
pages: write
1718
id-token: write
1819

20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
1924
jobs:
2025
build:
2126
runs-on: ubuntu-latest
@@ -68,6 +73,10 @@ jobs:
6873
needs: test
6974
runs-on: ubuntu-latest
7075

76+
environment:
77+
name: github-pages
78+
url: ${{ steps.deployment.outputs.page_url }}
79+
7180
steps:
7281
- uses: actions/checkout@v4
7382
with:
@@ -99,8 +108,19 @@ jobs:
99108
100109
cp -r docs/* .
101110
102-
sudo rm -rf docs Writerside .github .idea .editorconfig .gitignore Dockerfile README.md
111+
sudo rm -rf docs Writerside .github .idea .editorconfig .gitignore Dockerfile README.md ${{ env.ARTIFACT }}
103112
104113
git add .
105114
git commit -am "Automatic deployment"
106115
git push --force origin preview-deployment
116+
117+
- name: Setup Pages
118+
uses: actions/configure-pages@v5
119+
- name: Upload artifact
120+
uses: actions/upload-pages-artifact@v3
121+
with:
122+
# Upload entire repository
123+
path: '.'
124+
- name: Deploy to GitHub Pages
125+
id: deployment
126+
uses: actions/deploy-pages@v4

.github/workflows/static.yml

-39
This file was deleted.

0 commit comments

Comments
 (0)