Automating releases using Git work flows
You can automate the creation of git release tags from a github workflow via:
    github_workflow_release
1
name: Release executables for Linux
2
​
3
on:
4
push:
5
# tags:
6
# - '*'
7
​
8
jobs:
9
build:
10
runs-on: ubuntu-latest
11
​
12
container:
13
image: google/dart:latest
14
​
15
steps:
16
- uses: actions/[email protected]
17
​
18
- name: setup paths
19
run: export PATH="${PATH}":/usr/lib/dart/bin:"${HOME}/.pub-cache/bin"
20
​
21
- name: install pub_release
22
run: pub global activate pub_release
23
- name: Create release
24
env:
25
APITOKEN: ${{ secrets.APITOKEN }}
26
run: github_workflow_release --username <user> --apiToken "$APITOKEN" --owner <owner> --repository <repo>
Copied!
You need to update the <user>, <owner> and <repo> with the appropriate github values.
You also need to add you personal api token as a secret in github
Last modified 5mo ago
Copy link