Skip to content

Commit 0d755ba

Browse files
committed
[+] Add deploy job
1 parent 475455f commit 0d755ba

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ permissions: write-all
99
jobs:
1010
build_and_release:
1111
runs-on: ubuntu-latest
12-
1312
steps:
1413
- name: Check out code
1514
uses: actions/checkout@v3
@@ -78,3 +77,25 @@ jobs:
7877
mod/bin/Release/net472/WorldLink.dll
7978
mod/WorldLink.toml
8079
token: ${{ secrets.GITHUB_TOKEN }}
80+
81+
# Deploy job
82+
deploy:
83+
# Add a dependency to the build job
84+
needs: build_and_release
85+
86+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
87+
permissions:
88+
pages: write # to deploy to Pages
89+
id-token: write # to verify the deployment originates from an appropriate source
90+
91+
# Deploy to the github-pages environment
92+
environment:
93+
name: github-pages
94+
url: ${{ steps.deployment.outputs.page_url }}
95+
96+
# Specify runner + deployment step
97+
runs-on: ubuntu-latest
98+
steps:
99+
- name: Deploy to GitHub Pages
100+
id: deployment
101+
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action

0 commit comments

Comments
 (0)