Bump postcss from 8.3.11 to 8.4.31 in /src/OpenMod.Plugins #22
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
name: GitHub Pages | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.x | |
include-prerelease: true | |
- name: Setup NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- run: npm install | |
working-directory: src/OpenMod.Plugins | |
- name: Publish with dotnet | |
run: dotnet publish src/OpenMod.Plugins/ --configuration Release --output release | |
# Change the base tag and segments count to match GitHub Pages repository subdirectory | |
- name: Configure | |
run: | | |
sed -i 's/<base href="\/"\s\/>/<base href="\/openmod-plugins\/"\ \/>/g' release/wwwroot/index.html | |
sed -i 's/var segmentCount = 0;/var segmentCount = 1;/g' release/wwwroot/404.html | |
# Fixes 404 response. Add here all pages | |
- name: Create static pages | |
run: | | |
cp release/wwwroot/404.html release/wwwroot/search.html | |
cp release/wwwroot/404.html release/wwwroot/plugin.html | |
# Add .nojekyll file to tell GitHub Pages to not treat this as a Jekyll project | |
# Allows files and folders starting with an underscore | |
- name: Add .nojekyll file | |
run: touch release/wwwroot/.nojekyll | |
# css/app.css ===> non-minified file | |
- name: Create .gitignore | |
run: echo 'css/app.css' > release/wwwroot/.gitignore | |
- name: Deploy to GitHub Pages | |
if: github.event_name == 'push' | |
uses: JamesIves/github-pages-deploy-action@releases/v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
folder: release/wwwroot |