Skip to content

Commit

Permalink
v0.1.0-patch
Browse files Browse the repository at this point in the history
  • Loading branch information
canewsin committed Aug 11, 2022
1 parent ec518f1 commit 4f7c67a
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 5 deletions.
50 changes: 45 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
tags:
- v[0-9]+.*

env:
CARGO_TERM_COLOR: always

jobs:
create-release:
runs-on: ubuntu-latest
Expand All @@ -28,15 +31,52 @@ jobs:
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1.0.7
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}

- name: Checkingout Repo
uses: actions/checkout@v3

- name: Setting Nightly Rust Toolchain
uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: nightly
override: true
- uses: taiki-e/upload-rust-binary-action@v1

- name: Building Linux Binaries and Uploading to Releases
if: matrix.os == 'ubuntu-latest'
uses: taiki-e/upload-rust-binary-action@v1
with:
bin: zeronet
include: CHANGELOG.md, COPYING, README.md, ui
archive: ZeroNetX-linux-x64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Building Mac OS Binaries and Uploading to Releases
if: matrix.os == 'macos-latest'
uses: taiki-e/upload-rust-binary-action@v1
with:
bin: zeronet
archive: $bin-$tag-$target
include: CHANGELOG.md, COPYING, README.md, ui
archive: ZeroNetX-mac-x64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Building Windows Binaries and Uploading to Releases
if: matrix.os == 'windows-latest'
uses: taiki-e/upload-rust-binary-action@v1
with:
bin: zeronet
include: CHANGELOG.md, COPYING, README.md, ui
archive: ZeroNetX-windows-x64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Saving Artifact to Cache
uses: Swatinem/rust-cache@v1.3.0
with:
key: ${{ matrix.os }}
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [0.1.0-patch] - 2022-08-11

- Most of these are Github Action Changes for Binary Releases
- Include CHANGELOG.md, COPYING, README.md, ui directory with each release
- Name Build Steps
- Regular Naming for Github Action Release Binaries
- Tag Custom OS tags for Releases
- Cancel Prev Builds if any
- Cache build artfacts

## [0.1.0] - 2022-08-11

- Added CHANGELOG.md
Expand Down

0 comments on commit 4f7c67a

Please sign in to comment.