-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.24 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
name: release
on:
push:
tags:
- "v*"
jobs:
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install upx
run: sudo apt-get install upx
- name: Install nightly toolchain
run: |
rustup toolchain install nightly
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Build Project
run: cargo +nightly build -Z build-std=std,panic_abort --target x86_64-unknown-linux-gnu --profile production
- name: Compress Project
run: |
upx --lzma --best target/x86_64-unknown-linux-gnu/production/url-shortener
mv target/x86_64-unknown-linux-gnu/production/url-shortener url-shortener
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
LICENSE
README.md
url-shortener
- name: Run latest-tag
uses: EndBug/latest-tag@latest
with:
ref: latest
description: The latest release for the dds application
force-branch: false