Skip to content

Commit

Permalink
chore(ci): auto create draft release
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeerick committed Aug 4, 2024
1 parent 39e95f4 commit b13b79b
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions .github/workflows/buildcdn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ name: Build Releases

on:
push:
branches:
- master
branches:
- master
paths-ignore:
- '**/README.md'
- "**/README.md"
pull_request:
branches:
- master
branches:
- master
paths-ignore:
- '**/README.md'
- "**/README.md"
tags:
- v*

workflow_dispatch:

Expand All @@ -27,10 +29,10 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: sdcard-latest
path: |
path: |
dist/*
sdcard.json
upload-release:
if: github.event_name != 'pull_request'
needs: build-artifact
Expand All @@ -44,7 +46,7 @@ jobs:
uses: crowbarmaster/GH-Automatic-Releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: 'latest'
automatic_release_tag: "latest"
prerelease: true
title: "Latest"
files: |
Expand All @@ -54,3 +56,17 @@ jobs:
dist/c480x272.zip
dist/c480x320.zip
sdcard.json
- name: Auto Create Draft Release
uses: crowbarmaster/GH-Automatic-Releases@latest
if: startsWith(github.event.ref, 'refs/tags/v')
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: true
prerelease: false
files: |
dist/bw212x64.zip
dist/bw128x64.zip
dist/c320x480.zip
dist/c480x272.zip
dist/c480x320.zip
sdcard.json

0 comments on commit b13b79b

Please sign in to comment.