New release #83
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: push | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
cache: 'pip' | |
python-version: "3.11" | |
- name: Install requirements | |
run: >- | |
python3 -m pip install .[dev] --user | |
- name: Package application | |
run: >- | |
cd hasherino && flet pack __main__.py --name hasherino | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: hasherino-linux | |
path: hasherino/dist/hasherino | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
cache: 'pip' | |
python-version: "3.11" | |
- name: Install requirements | |
run: >- | |
python3 -m pip install .[dev] --user | |
- name: Package application | |
run: >- | |
cd hasherino && flet pack __main__.py --name hasherino | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: hasherino-windows | |
path: hasherino/dist/hasherino.exe | |
release: | |
runs-on: ubuntu-latest | |
needs: [build-linux, build-windows] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download windows artifact | |
id: linux | |
uses: actions/download-artifact@v3 | |
with: | |
name: 'hasherino-windows' | |
path: 'artifacts' | |
- name: Download linux artifact | |
id: windows | |
uses: actions/download-artifact@v3 | |
with: | |
name: 'hasherino-linux' | |
path: 'artifacts' | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |
body_path: CHANGELOG.md | |
files: | | |
artifacts/* |