Bump @fortawesome/free-brands-svg-icons from 5.15.4 to 6.5.2 #4
Workflow file for this run
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
--- | |
# GitHub Actions workflow for commits pushed to the antora theme repo | |
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [18.16.0] | |
steps: | |
- name: Clone the repo | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Run with CI | |
run: npm ci | |
# Build the Antora UI bundle for release. | |
- name: Build bundle | |
id: build_bundle | |
run: gulp bundle | |
# Build the Antora preview (ends up in ./public) | |
- name: Build preview | |
# Only support previews on PRs | |
if: "github.event_name == 'pull_request'" | |
id: build_preview | |
run: gulp preview:build | |
- name: Store PR id | |
if: "github.event_name == 'pull_request'" | |
run: echo ${{ github.event.number }} > ./public/pr-id.txt | |
- name: Publishing directory for PR preview | |
if: "github.event_name == 'pull_request'" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: site | |
path: ./public | |
retention-days: 3 | |
- name: Bump version and push tag | |
id: tag | |
uses: anothrNick/[email protected] | |
# Only try and deploy on merged code | |
if: "github.repository == 'eddiecarpenter/antora-ui-go-docs' && github.ref_name == 'main' && (github.event_name == 'push' || github.event_name == 'schedule')" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
- name: Publish bundle | |
uses: ncipollo/release-action@v1 | |
# Only try and deploy on merged code, ie if we just made a tag | |
if: "steps.tag.outputs.new_tag" | |
with: | |
artifacts: "./build/ui-bundle.zip" | |
omitBody: true | |
generateReleaseNotes: true | |
makeLatest: true | |
tag: "${{ steps.tag.outputs.new_tag }}" |