π§ migrate to new version #53
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: action | |
on: | |
- push | |
- pull_request | |
- workflow_dispatch | |
jobs: | |
action: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: caching | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.deno | |
~/.cache/deno | |
key: ${{ runner.os }}-deno-${{ hashFiles('**/lock.json') }} | |
- name: pre-download and validate dependencies | |
run: deno task cache:r | |
- name: check types | |
run: deno task check | |
- name: check lint | |
run: deno task lint | |
- name: check build | |
run: deno task build | |
- name: deploy to github pages | |
if: ${{ github.ref_type == 'tag' }} | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: public | |
folder: dist | |
git-config-name: github-actions[bot] | |
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com | |
commit-message: ${{ format('π deploy {0} @ {1}@{2}', github.ref_name, github.repository, github.sha) }} |