aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml19
1 files changed, 18 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 4de3241..dcd6054 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,4 +1,4 @@
-name: build
+name: Continuous build and release
on:
push:
@@ -6,6 +6,9 @@ on:
pull_request:
branches: [main]
+permissions:
+ contents: write
+
jobs:
test:
name: Continuous Integration
@@ -30,3 +33,17 @@ jobs:
- name: Main task
run: V=1 make all
+
+ - name: Update releases page
+ uses: softprops/action-gh-release@v2
+ with:
+ tag_name: latest
+ name: Continuous Build
+ files: out/*.nes
+ body: |
+ This release was automatically generated from commit ${{github.sha}}.
+ draft: false
+ prerelease: true
+ make_latest: true
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}