Skip to content

Commit

Permalink
Add a workflow to publish a release
Browse files Browse the repository at this point in the history
  • Loading branch information
andor0 committed Aug 8, 2022
1 parent 23934ca commit 13b82b0
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
tags:
# Catches v1.2.3 and v1.2.3-rc1
- v[0-9]+.[0-9]+.[0-9]+*
# - v[0-9]+.[0-9]+.[0-9]+*

jobs:
get-rust-versions:
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish release

on:
push:
branches:
- andor0/publish-release # tmp
tags:
# Catches v1.2.3 and v1.2.3-rc1
- v[0-9]+.[0-9]+.[0-9]+*

jobs:
build-and-publish:
runs-on: ubuntu-latest
container:
image: composablefi/ci-linux:2022-04-18
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.COMPOSABLE_GITHUB_TOKEN }}
with:
# tag_name: ${{ github.ref }}
# release_name: Polkadot ${{ github.ref }}

tag_name: v0.9.24-5 # tmp
release_name: Polkadot v0.9.24-5 #tmp

- name: Build
run: |
cargo build --release
- name: Upload artifacts
id: upload-composable-binary
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/release/polkadot
asset_name: polkadot
asset_content_type: application/octet-stream

0 comments on commit 13b82b0

Please sign in to comment.