Skip to content

Updated license

Updated license #63

Workflow file for this run

name: Update Issues and Publish to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
issues:
types: [opened, closed]
jobs:
issues_to_markdown:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: npm install axios
- name: Generate Bug Tracker Markdown
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_NAME: ${{ github.repository }}
run: node .github/scripts/issues_to_md.js
- name: Generate Wish List Markdown
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_NAME: ${{ github.repository }}
run: node .github/scripts/issues_to_wishlist.js
- name: Commit and push if it's necessary
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git diff --quiet && git diff --staged --quiet || (git add docs/bugtracker.md docs/wishlist.md; git commit -m "Update bugtracker.md and wishlist.md"; git push)
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: docs
path: docs/
publish:
name: Publish to retype branch
needs: issues_to_markdown
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: docs
path: docs/
- uses: retypeapp/action-build@latest
with:
license: ${{ secrets.RETYPE_SECRET }}
- uses: retypeapp/action-github-pages@latest
with:
update-branch: true