ci: Create GitHub release in workflow

This commit is contained in:
robshape 2023-04-25 15:16:28 +02:00
parent f0c408fc9c
commit 716dbc9f08
3 changed files with 26 additions and 8 deletions

View file

@ -1,5 +1,7 @@
name: Build and release name: Build and release
on: workflow_dispatch on: workflow_dispatch
permissions:
contents: write
jobs: jobs:
build-and-release: build-and-release:
@ -33,7 +35,23 @@ jobs:
export UNION_PLATFORM=rg35xx export UNION_PLATFORM=rg35xx
make all make all
- name: Create release - name: Name Git tag
run: | run: |
ls -a ./releases/ export GIT_TAG=$(cat ./build/latest.txt)
echo "TODO" echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV
- name: Create Git tag
uses: mathieudutour/github-tag-action@v6.1
id: tag_version
with:
custom_tag: ${{env.GIT_TAG}}
dry_run: true
github_token: ${{secrets.GITHUB_TOKEN}}
- name: Create GitHub release
uses: ncipollo/release-action@v1.12.0
with:
artifacts: "releases/*b-0-full.zip"
draft: true
prerelease: true
tag: ${{steps.tag_version.outputs.new_tag}}

View file

@ -61,7 +61,7 @@ Run `./start-toolchain.sh` and then `make all` in the Docker container shell.
- ~~Add to Favorites~~ - ~~Add to Favorites~~
- ~~Adjust battery capacity readings (2100 mAh, 2600 mAh, 3500 mAh)~~ - ~~Adjust battery capacity readings (2100 mAh, 2600 mAh, 3500 mAh)~~
- ~~Update visible MinUI strings (show that it is the FinUI fork)~~ - ~~Update visible MinUI strings (show that it is the FinUI fork)~~
- Release using GitHub Actions - ~~Release using GitHub Actions~~
- Adjust overclocking and CPU usage (to maximize battery life) - Adjust overclocking and CPU usage (to maximize battery life)
- Improve battery capacity reading accuracy - Improve battery capacity reading accuracy
- [...things in the old todo?...](./todo.txt) - [...things in the old todo?...](./todo.txt)

View file

@ -2,7 +2,7 @@
# Shortcuts # # Shortcuts #
############# #############
| Description | Shortcut | | Description | Shortcut |
| ---------------------------- | ---------------------------- | | -------------------------------- | ---------------------------- |
| Adjust brightness | MENU + VOLUME_DOWN/VOLUME_UP | | Adjust brightness | MENU + VOLUME_DOWN/VOLUME_UP |
| Add to Favorites (from menu) | SELECT | | Add/remove Favorites (from menu) | SELECT |