Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from AlyoshaVasilieva/ci
Browse files Browse the repository at this point in the history
Add releasing to CI
  • Loading branch information
AlyoshaVasilieva authored Jun 29, 2021
2 parents 62d8888 + eb58dd0 commit 7abb856
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# TODO: Run build.sh to test entire build stage.
on: [push, pull_request]
on: [ push, pull_request ]

name: CI

Expand Down Expand Up @@ -52,3 +51,23 @@ jobs:
with:
command: clippy
args: -- -D warnings

release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup target add x86_64-unknown-linux-musl
- run: sudo apt-get install musl-tools -y
- run: ./build.sh
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: city17.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7abb856

Please sign in to comment.