Skip to content

Commit

Permalink
GA: test release
Browse files Browse the repository at this point in the history
  • Loading branch information
x9q committed Aug 12, 2023
1 parent 9857b2f commit 1be0eae
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
#tags:
#- 'v*'
tags:
- 'v*'
branch:
- ga

Expand All @@ -23,12 +23,29 @@ jobs:
strip _build/prod/rel/orc/erts-*/bin/* || true
tar jcf orc-${GITHUB_REF_NAME#v}-ubuntu-jammy-x86_64.tar.bz2 -C _build/prod/rel/ orc
md5sum orc-${GITHUB_REF_NAME#v}-ubuntu-jammy-x86_64.tar.bz2 | cut -f1 -d ' ' > orc-${GITHUB_REF_NAME#v}-ubuntu-jammy-x86_64.md5sum
pwd
ls -al
ubuntu20-amd64:
runs-on: self-hosted
env:
ImageOS: ubuntu20
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: erlef/setup-beam@v1
with:
otp-version: '24'
rebar3-version: '3.16.1'
- run: |
rebar3 as prod release
strip _build/prod/rel/orc/erts-*/bin/* || true
tar jcf orc-${GITHUB_REF_NAME#v}-ubuntu-jammy-x86_64.tar.bz2 -C _build/prod/rel/ orc
md5sum orc-${GITHUB_REF_NAME#v}-ubuntu-jammy-x86_64.tar.bz2 | cut -f1 -d ' ' > orc-${GITHUB_REF_NAME#v}-ubuntu-jammy-x86_64.md5sum
release:
needs: ['ubuntu22-amd64', 'ubuntu20-amd64']
steps:
- uses: softprops/action-gh-release@v1
with:
files: |
orc-*
orc-${GITHUB_REF_NAME#v}-ubuntu-jammy-x86_64.tar.bz2
orc-${GITHUB_REF_NAME#v}-ubuntu-jammy-x86_64.md5sum

0 comments on commit 1be0eae

Please sign in to comment.