Skip to content

Commit

Permalink
upload files
Browse files Browse the repository at this point in the history
  • Loading branch information
aq2r committed Dec 1, 2024
1 parent fd30e34 commit 9ab182d
Show file tree
Hide file tree
Showing 63 changed files with 10,578 additions and 42 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
permissions:
contents: write

name: Release

on:
push:
tags:
- "v*"

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-pc-windows-msvc

- name: Install cargo-about
run: cargo install cargo-about

- name: Build
run: cargo build --release

- name: Generate License
run: cargo about generate about.hbs -o ThirdPartyLicenses.html

- name: Create Release Archive
shell: bash
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
REPO_NAME=${GITHUB_REPOSITORY##*/}
RELEASE_NAME="${REPO_NAME}-${TAG_NAME}-windows"
mkdir -p "${RELEASE_NAME}"
cp "target/release/${REPO_NAME}.exe" "${RELEASE_NAME}/"
cp LICENSE README.md ThirdPartyLicenses.html "${RELEASE_NAME}/"
7z a "${RELEASE_NAME}.zip" "${RELEASE_NAME}"
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: "*.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/target
appdata
BOT_TOKEN
bep-eng.dic
settings.json
/deny.toml
Loading

0 comments on commit 9ab182d

Please sign in to comment.