Skip to content

Commit 97c55bf

Browse files
authored
Merge pull request #90 from gperdrizet/dev
Added deployment to test envrionment
2 parents ad8a49e + 52d4c48 commit 97c55bf

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/workflows/deploy-gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Sample workflow for deploying a Jekyll site to GitHub Pages
2-
name: GitHub pages deployment
2+
name: Pages
33

44
# Runs on pushes targeting the default branch
55
on:
Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Workflow for building a Jekyll site for deployment to GitHub Pages
2-
name: GitHub pages build
2+
name: Pages test
33

44
# Runs on pull request creation
55
on:
@@ -55,4 +55,21 @@ jobs:
5555
uses: actions/jekyll-build-pages@v1
5656
with:
5757
source: ./site
58-
destination: ./site/_site
58+
destination: ./site/_site
59+
- name: Upload artifact
60+
uses: actions/upload-pages-artifact@v3
61+
with:
62+
path: ./site/_site
63+
64+
# Deployment job
65+
deploy:
66+
name: Test deploy pages site
67+
environment:
68+
name: github-pages-test
69+
url: ${{ steps.deployment.outputs.page_url }}
70+
runs-on: ubuntu-latest
71+
needs: build
72+
steps:
73+
- name: Deploy to GitHub Pages
74+
id: deployment
75+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)