-
Notifications
You must be signed in to change notification settings - Fork 148
38 lines (38 loc) · 1.16 KB
/
preview-website.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Publish Preview
on:
push:
branches:
- main
jobs:
build:
name: Preview
runs-on: ubuntu-latest
steps:
- name: checkout-master
uses: actions/checkout@v2
- name: enable-env
run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.5.9
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: website
CLEAN: true
- name: checkout-gh-pages
uses: actions/checkout@v2
with:
ref: 'gh-pages'
- name: add-preview
uses: jacobtomlinson/gha-find-replace@master
with:
find: '>SPDX License List'
replace: '>PREVIEW - SPDX License List'
- name: fix-breadcrumbs
uses: jacobtomlinson/gha-find-replace@master
with:
find: '<a href="/">Home</a> » <a href="/licenses">Licenses</a>'
replace: '<a href="/license-list-data">Licenses</a>'
- uses: stefanzweifel/git-auto-commit-action@v4.4.1
with:
commit_message: Update preview and breadcrumbs for github.io web pages