-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.1 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Release apex version
on:
workflow_dispatch:
inputs:
version:
description: 'Version to release'
required: true
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.RELEASE_TOKEN }}
- uses: denolib/setup-deno@v2
- name: Update version and README.md
env:
VERSION: ${{ inputs.version }}
FILES: 'apex.ts,README.md'
run: |
deno run --allow-run --allow-env --allow-write --allow-read ./.github/workflows/release.ts
deno run --allow-run --allow-env --allow-write --allow-read ./.github/workflows/update-readme.ts
- name: Commit and tag release
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: ${{ inputs.version }} release
tagging_message: ${{ inputs.version }}
- name: Create Release
uses: ncipollo/[email protected]
with:
generateReleaseNotes: true
makeLatest: true
tag: ${{ inputs.version }}