-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,461 changed files
with
4,497,965 additions
and
275,419 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,26 @@ | ||
name: Release | ||
name: Build Binaries | ||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- 'v[0-9]+.*' | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
- '[0-9]+.[0-9]+.[0-9]+' | ||
jobs: | ||
create_release: | ||
name: Create release | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
# Note this. We are going to use that in further jobs. | ||
outputs: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
steps: | ||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Set up Golang | ||
uses: actions/setup-go@v5 | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
release_assets: | ||
name: Release assets | ||
needs: create_release # we need to know the upload URL | ||
runs-on: ${{ matrix.config.os }} # we run many different builds | ||
strategy: | ||
# just an example matrix | ||
matrix: | ||
config: | ||
- os: ubuntu-latest | ||
- os: macos-latest | ||
- os: windows-latest | ||
steps: | ||
# checkout of cource | ||
- name: Checkout code | ||
go-version: "1.22" | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
# ... whatever build and packaging steps you need here | ||
# and finally do an upload! | ||
- name: Upload release assets | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Compile binaries | ||
run: make build | ||
- name: Upload binaries | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
upload_url: ${{ needs.create_release.outputs.upload_url }} | ||
# This is how it will be named on the release page. Put hatever name | ||
# you like, remember that they need to be different for each platform. | ||
# You can choose any build matrix parameters. For Rust I use the | ||
# target triple. | ||
asset_name: lite-reader-${{ matrix.config.os }} | ||
asset_path: ./public | ||
name: binaries | ||
path: lite-reader-* | ||
if-no-files-found: error | ||
retention-days: 5 |
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
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
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.