-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# This workflow will install Deno then run Deno lint and test. | ||
# For more information see: https://github.com/denoland/setup-deno | ||
|
||
name: Push to Docs | ||
|
||
on: | ||
push: | ||
tags: | ||
- "effection-v*" | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
# Give the default GITHUB_TOKEN write permission to commit and push the | ||
# added or changed files to the repository. | ||
contents: write | ||
|
||
steps: | ||
- name: checkout | ||
- uses: actions/checkout@v4 | ||
|
||
- name: setup deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: Get Version | ||
id: vars | ||
run: echo ::set-output name=version::$(echo ${{github.ref_name}} | sed 's/^effection-v//') | ||
|
||
- name: Generate Docs | ||
run: deno doc --html --name=effection@$NPM_VERSION mod.ts | ||
env: | ||
NPM_VERSION: ${{steps.vars.outputs.version}} | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "[skip ci] Add docs" | ||
file_pattern: "docs" | ||
|
||
|
||
|