From 4ab42e846d077cee3e93927090b034431ca269e4 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 13 Feb 2021 01:47:57 -0500 Subject: [PATCH] feat: add ability to trigger release via github actions This will enable releases to be performed even when not at a computer, though also by anyone with Actions access. --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..4b5b93542 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +--- +name: 'release' + +# yamllint disable-line rule:truthy +on: + workflow_dispatch: + inputs: + release_type: + description: 'Release type [build, betafish, patch, minor, major]' + required: true + default: 'build' + +jobs: + release: + name: release + runs-on: ubuntu-20.04 + env: + PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} + steps: + - uses: actions/checkout@v2 + + - name: build package + run: contrib/release-dokku ${{ github.event.inputs.release_type }} + + - name: upload packages + uses: actions/upload-artifact@v2 + with: + name: build + path: build