Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Merge pull request #26 from holzmaster/dependabot/npm_and_yarn/braces… #81

Merge pull request #26 from holzmaster/dependabot/npm_and_yarn/braces…

Merge pull request #26 from holzmaster/dependabot/npm_and_yarn/braces… #81

Workflow file for this run

name: Pages
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 14.0
uses: actions/setup-node@v4
with:
node-version: 14.0
registry-url: https://registry.npmjs.org/
- name: npm install, build, and test
run: |
npm ci
npm run build-docs
env:
CI: true
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build
- name: Create Release
id: create_release
uses: actions/create-release@latest
if: startsWith(github.ref, 'refs/tags/v')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload minified CSS
uses: actions/upload-release-asset@v1
if: startsWith(github.ref, 'refs/tags/v')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/pr0gramm.min.css
asset_name: pr0gramm.min.css
asset_content_type: text/css
- name: Upload CSS
uses: actions/upload-release-asset@v1
if: startsWith(github.ref, 'refs/tags/v')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/pr0gramm.css
asset_name: pr0gramm.css
asset_content_type: text/css
- name: Publish Package
if: startsWith(github.ref, 'refs/tags/v')
run: |
npm ci
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}