Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b5c60ea

Browse files
committedAug 26, 2022
More GitHub pages rework
1 parent 6a898ea commit b5c60ea

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed
 

‎.github/workflows/gh-pages.yml

+26-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,33 @@
1-
name: Github Pages (rdoc)
1+
name: Deploy rdoc to GitHub Pages
2+
23
on:
34
push:
45
branches:
5-
- main
6+
- $default-branch
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow one concurrent deployment
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: true
621

722
jobs:
23+
# Build job
824
build:
925
runs-on: ubuntu-latest
1026
steps:
1127
- name: Checkout
12-
uses: actions/checkout@master
28+
uses: actions/checkout@v3
29+
- name: Setup Pages
30+
uses: actions/configure-pages@v2
1331
- name: Set up Ruby
1432
uses: ruby/setup-ruby@v1
1533
with:
@@ -20,18 +38,16 @@ jobs:
2038
gem install rdoc
2139
rdoc --main README.md --op _site --exclude={Gemfile,Rakefile,"coverage/*","vendor/*","bin/*","test/*","tmp/*"}
2240
cp -r doc _site/doc
23-
- name: Upload artifact 🚀
24-
uses: actions/upload-pages-artifact@main
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v1
2543

44+
# Deployment job
2645
deploy:
27-
runs-on: ubuntu-latest
28-
needs: build
29-
permissions:
30-
pages: write
31-
id-token: write
3246
environment:
3347
name: github-pages
3448
url: ${{ steps.deployment.outputs.page_url }}
49+
runs-on: ubuntu-latest
50+
needs: build
3551
steps:
3652
- name: Deploy to GitHub Pages
3753
id: deployment

0 commit comments

Comments
 (0)
Please sign in to comment.