pub_release
  • README
  • Creating a release
  • Multi-package Releases
    • Setup
    • Commands
    • Circular dependencies
    • Mono Repo
    • Version No.s
  • Hooks
  • Dependency overrides
  • Automatic github releases
  • Attach an asset to a github release
  • Automating releases using Git work flows
  • Version File
  • CHANGELOG
  • example
Powered by GitBook
On this page

Was this helpful?

Automating releases using Git work flows

You can automate the creation of git release tags from a github workflow via:

  • github_workflow_release

name: Release executables for Linux

on:
  push:
#    tags:
#      - '*'

jobs:
  build:
    runs-on: ubuntu-latest

    container:
      image:  google/dart:latest

    steps:
    - uses: actions/checkout@v2

    - name: setup paths
      run: export PATH="${PATH}":/usr/lib/dart/bin:"${HOME}/.pub-cache/bin"

    - name: install pub_release
      run: pub global activate pub_release
    - name: Create release
      env:
        APITOKEN:  ${{ secrets.APITOKEN }}
      run: github_workflow_release --username <user> --apiToken "$APITOKEN" --owner <owner> --repository <repo>

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

PreviousAttach an asset to a github releaseNextVersion File

Last updated 4 years ago

Was this helpful?

https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets