Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adamthrash authored Apr 12, 2024
1 parent 3612675 commit 3e57c27
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ name: Create Draft Release

on:
workflow_dispatch:
#push:
# branches: [ "main" ]
#pull_request:
# branches: [ "main" ]
# schedule:
# - cron: "0 0 1 */6 *"

jobs:
create_release:
Expand All @@ -17,7 +15,7 @@ jobs:
- name: Create
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create -d "draft"
run: gh release create -d $(date '+%Y.%m')
release:
name: Build and Upload
needs: create_release
Expand All @@ -43,11 +41,11 @@ jobs:
if: startsWith(runner.os, 'Windows')
run: |
mv egads.exe egads_${{ runner.os }}.exe
gh release upload "draft" egads_${{ runner.os }}.exe
gh release upload $(date '+%Y.%m') egads_${{ runner.os }}.exe
- name: Release (Not Windows)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ ! startsWith(runner.os, 'Windows') }}
run: |
mv egads egads_${{ runner.os }}
gh release upload "draft" egads_${{ runner.os }}
gh release upload $(date '+%Y.%m') egads_${{ runner.os }}

0 comments on commit 3e57c27

Please sign in to comment.