Skip to content

Commit

Permalink
[IDX-2415] Adding GH Release Workflow [lessci]
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-k0 committed May 22, 2023
1 parent 3695d96 commit 46fe649
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Make Release

on:
push:
tags:
- 'release-*'

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Collect Release Artifacts
run: |
set -euxo pipefail
REVS_FILE="testnet/mainnet_revisions.json"
NNS_RELEASE="$(jq -r '.subnets["tdb26-jop6k-aogll-7ltgs-eruif-6kk7m-qpktf-gdiqx-mxtrf-vb5e6-eqe"]' $REVS_FILE)"
DOWNLOAD_PREFIX="http://download.dfinity.systems/ic/${NNS_RELEASE}"
curl -sfSL --retry 3 "${DOWNLOAD_PREFIX}/setup-os/disk-img/disk-img.tar.gz" -o setup-os-img.tar.gz
curl -sfSL --retry 3 "${DOWNLOAD_PREFIX}/guest-os/update-img/update-img.tar.gz" -o update-os-img.tar.gz
curl -sfSL --retry 3 "${DOWNLOAD_PREFIX}/binaries/x86_64-linux/ic-admin.gz" -o ic-admin-x86_64-linux.gz
curl -sfSL --retry 3 "${DOWNLOAD_PREFIX}/binaries/x86_64-darwin/ic-admin.gz" -o ic-admin-x86_64-darwin.gz
sha256sum *.gz > sha256sums.txt
- name: Publish Release
uses: softprops/action-gh-release@v1
with:
token: ${{secrets.RELEASE_TOKEN}}
body: "IC ${{github.ref_name}}"
files: |
setup-os-img.tar.gz
update-os-img.tar.gz
ic-admin-x86_64-linux.gz
ic-admin-x86_64-darwin.gz
sha256sums.txt
1 change: 1 addition & 0 deletions .gitlab/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# [Misc]
/.dependencies/ @dfinity-lab/teams/prodsec
/.devcontainer/ @dfinity-lab/teams/idx
/.github/ @dfinity-lab/teams/idx
/buf.yaml @dfinity-lab/teams/message-routing-owners
/dshell/ @dfinity-lab/teams/idx
/hs/ @dfinity-lab/teams/ic-testing-verification
Expand Down

0 comments on commit 46fe649

Please sign in to comment.