Skip to content

Commit

Permalink
Merge pull request #19 from Zondax/publish_step_CI
Browse files Browse the repository at this point in the history
Add publish step to CI
  • Loading branch information
jleni authored Jan 7, 2022
2 parents 33bec10 + 4760988 commit edc4281
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,60 @@ jobs:
run: |
export PATH=~/.cargo/bin:$PATH
cd tests_zemu && yarn testSR25519
build_package:
needs: [ configure, build, build_ledger, test_zemu, test_zemu_sr25519 ]
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
container:
image: zondax/builder-bolos:latest
options: --user ${{ needs.configure.outputs.uid_gid }}
env:
BOLOS_SDK: ${{ github.workspace }}/deps/nanos-secure-sdk
BOLOS_ENV: /opt/bolos
HOME: /home/zondax_circle
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Install deps
run: pip install ledgerblue
- name: Build
shell: bash -l {0}
run: |
source $HOME/.cargo/env
make SUBSTRATE_PARSER_FULL=0
- name: Set tag name var (1)
id: vars_1
run: echo ::set-output name=tag_name::$(./app/pkg/installer_s.sh version)
- name: Create or Update Release (1)
id: create_release_1
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
files: ./app/pkg/installer_s.sh
tag_name: ${{ steps.vars_1.outputs.tag_name }}
draft: false
prerelease: false
- name: Clear and rebuild XL version
shell: bash -l {0}
run: |
source $HOME/.cargo/env
make SUBSTRATE_PARSER_FULL=1
cp rust/app/pkg/installer_s.sh rust/app/pkg/installer_baking_s.sh
cp app/pkg/installer_s.sh app/pkg/installer_XL_s.sh
- name: Set tag name var (2)
id: vars_2
run: echo ::set-output name=tag_name::$(./app/pkg/installer_XL_s.sh version)
- name: Create or Update Release (2)
id: create_release_2
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
files: ./app/pkg/installer_XL_s.sh
tag_name: ${{ steps.vars_2.outputs.tag_name }}
draft: false
prerelease: false

0 comments on commit edc4281

Please sign in to comment.