Remove promote-release.sh from Release process (#958)

This commit is contained in:
Ben Meadors 2021-12-05 18:31:36 -06:00 committed by GitHub
parent 05835fd1bb
commit 02e3d06bcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,12 +4,12 @@ on:
# workflow_dispatch: # workflow_dispatch:
# inputs: # inputs:
# Only want to be run if a new tag starting with v is pushed. # Only want to run if version.properties is bumped in master
push: push:
branches: branches:
- "!*" - master
tags: paths:
- "v1*" - 'version.properties'
jobs: jobs:
release-build: release-build:
@ -21,19 +21,15 @@ jobs:
with: with:
submodules: 'recursive' submodules: 'recursive'
# get github branch and tag names as ${{ steps.branch_name.outputs.SOURCE_TAG }}
- name: Branch name
id: branch_name
run: |
echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.x python-version: 3.x
# Will be available in steps.version.outputs.version
- name: Get release version string
run: echo "::set-output name=version::$(./bin/buildinfo.py long)"
id: version
# Note: we don't use caches on release builds because we don't want to accidentally not have a virgin build machine # Note: we don't use caches on release builds because we don't want to accidentally not have a virgin build machine
- name: Upgrade python tools - name: Upgrade python tools
@ -60,11 +56,6 @@ jobs:
tar -xf build.tar -C data/static tar -xf build.tar -C data/static
rm build.tar rm build.tar
# Will be available in steps.version.outputs.version
- name: Get version string
run: echo "::set-output name=version::$(./bin/buildinfo.py long)"
id: version
- name: Build everything - name: Build everything
run: bin/build-all.sh run: bin/build-all.sh
@ -75,8 +66,7 @@ jobs:
draft: true draft: true
prerelease: true prerelease: true
release_name: ${{ steps.version.outputs.version }} alpha release_name: ${{ steps.version.outputs.version }} alpha
tag_name: ${{ steps.branch_name.outputs.SOURCE_TAG }} tag_name: v${{ steps.version.outputs.version }}
# was ${{ github.ref }}
body: | body: |
Autogenerated by github action, developer should edit as required before publishing... Autogenerated by github action, developer should edit as required before publishing...
env: env:
@ -100,4 +90,4 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: release/archive/elfs-${{ steps.version.outputs.version }}.zip asset_path: release/archive/elfs-${{ steps.version.outputs.version }}.zip
asset_name: debug-elfs-${{ steps.version.outputs.version }}.zip asset_name: debug-elfs-${{ steps.version.outputs.version }}.zip
asset_content_type: application/zip asset_content_type: application/zip