Skip to content

License list build 2616654 using license list publisher 2.2.10 #285

License list build 2616654 using license list publisher 2.2.10

License list build 2616654 using license list publisher 2.2.10 #285

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/[email protected]
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/[email protected]
with:
commit_message: Update preview and breadcrumbs for github.io web pages