[BUGFIX] Reference correct release tag on single page (#324) #131
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Site | |
on: | |
push: | |
branches: | |
- main | |
env: | |
NODE: 16.x | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
if: github.repository == 'typo3/typo3.icons' | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '${{ env.NODE }}' | |
- name: Set up cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} | |
- name: Install | |
run: npm ci | |
- name: Build icons | |
run: npm run icons-build | |
- name: Build site | |
run: npm run site-build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
allow_empty_commit: false | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./_site/ |