Skip to content

Commit 631dd91

Browse files
committed
🐛 Fix CI
1 parent e00c2ec commit 631dd91

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: release
22
on:
33
push:
44
tags:
5-
- "v[0-9]+.[0-9]+.[0-9]+"
5+
- "v[0-9]+.[0-9]+.[0-9]+"
66

77
concurrency:
88
group: ${{ github.sha }}
@@ -16,50 +16,50 @@ jobs:
1616
strategy:
1717
matrix:
1818
include:
19-
- build: linux
20-
os: ubuntu-18.04
21-
rust: stable
22-
target: x86_64-unknown-linux-musl
23-
- build: macos
24-
os: macos-latest
25-
rust: stable
26-
target: x86_64-apple-darwin
19+
- build: linux
20+
os: ubuntu-20.04
21+
rust: stable
22+
target: x86_64-unknown-linux-musl
23+
- build: macos
24+
os: macos-latest
25+
rust: stable
26+
target: x86_64-apple-darwin
2727
env:
2828
RUST_BACKTRACE: full
2929
TARGET_DIR: ./target
3030
steps:
31-
- name: Checkout repository
32-
uses: actions/checkout@v2
31+
- name: Checkout repository
32+
uses: actions/checkout@v2
3333

34-
- name: Get the release version from the tag
35-
shell: bash
36-
if: env.FLOPHA_VERSION == ''
37-
run: |
38-
echo "FLOPHA_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
39-
echo "version is: ${{ env.FLOPHA_VERSION }}"
34+
- name: Get the release version from the tag
35+
shell: bash
36+
if: env.FLOPHA_VERSION == ''
37+
run: |
38+
echo "FLOPHA_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
39+
echo "version is: ${{ env.FLOPHA_VERSION }}"
4040
41-
- name: Install packages (Ubuntu)
42-
if: matrix.os == 'ubuntu-18.04'
43-
run: |
44-
sudo apt-get update
45-
sudo apt-get install -y musl-tools
46-
47-
- name: Install Rust
48-
uses: actions-rs/toolchain@v1
49-
with:
50-
toolchain: ${{ matrix.rust }}
51-
profile: minimal
52-
override: true
41+
- name: Install packages (Ubuntu)
42+
if: matrix.os == 'ubuntu-20.04'
43+
run: |
44+
sudo apt-get update
45+
sudo apt-get install -y musl-tools
5346
54-
- name: Build and Package
55-
shell: bash
56-
run: |
57-
scripts/package.sh --target ${{ matrix.target }}
58-
echo "ASSET=dist/flopha-${{ matrix.target }}.tar.gz" >> $GITHUB_ENV
47+
- name: Install Rust
48+
uses: actions-rs/toolchain@v1
49+
with:
50+
toolchain: ${{ matrix.rust }}
51+
profile: minimal
52+
override: true
5953

60-
- name: Upload release archive
61-
uses: softprops/action-gh-release@v1
62-
if: startsWith(github.ref, 'refs/tags/')
63-
with:
64-
token: ${{ secrets.FLOPHA_GITHUB_TOKEN }}
65-
files: ${{ env.ASSET }}
54+
- name: Build and Package
55+
shell: bash
56+
run: |
57+
scripts/package.sh --target ${{ matrix.target }}
58+
echo "ASSET=dist/flopha-${{ matrix.target }}.tar.gz" >> $GITHUB_ENV
59+
60+
- name: Upload release archive
61+
uses: softprops/action-gh-release@v2
62+
with:
63+
tag_name: ${{ env.FLOPHA_VERSION }}
64+
generate_release_notes: True
65+
files: ${{ env.ASSET }}

0 commit comments

Comments
 (0)