make-release #49
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: make-release | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout | |
- uses: actions/checkout@v2 | |
# Create dist directory | |
- name: Create /dist | |
run: mkdir dist | |
# Build CSS | |
- name: Sass Build | |
uses: gha-utilities/[email protected] | |
with: | |
source: src/fluent-build.scss | |
destination: dist/Fluent-Discord.css | |
outputStyle: expanded | |
# Delete @charset | |
- name: Delete charset | |
run: sed -i '1d' dist/Fluent-Discord.css | |
# Deploy to gh-pages | |
- name: GitHub Pages action | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./dist | |
keep_files: true | |
commit_message: Deployment from Action |