Skip to content

Commit

Permalink
Use monotonic releases instead of semver (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gocnak committed May 21, 2023
1 parent 1390225 commit ae99da6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ on:
pull_request:
branches:
- master

jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.10'

Expand All @@ -23,7 +23,7 @@ jobs:
run: .\build.bat fgd all

- name: Artifact upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: build_${{ runner.os }}-${{ github.sha }}
path: ./build/*
Expand All @@ -33,10 +33,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.10'

Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

name: Release Deploy
jobs:
manual_release:
release:
runs-on: windows-latest

env:
Expand All @@ -23,6 +23,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Required for finding the right tags

- name: Setup Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -83,17 +85,17 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get next SemVer version
- name: Next Monotonic Release version
id: next
uses: 'WyriHaximus/github-action-next-semvers@v1.0'
uses: WyriHaximus/github-action-next-release-version@08a7476c98e8095fad1cce0e2344c7892e17d111
with:
version: ${{ steps.previoustag.outputs.tag }}

- name: Create Rolling Release
uses: softprops/action-gh-release@v1
if: ${{ github.event.inputs.version == '' }}
with:
tag_name: ${{ steps.next.outputs.patch }}
tag_name: ${{ steps.next.outputs.version }}
files: |
${{ env.FGD_BUILD_DIR }}/momentum/fgd-momentum.zip
${{ env.FGD_BUILD_DIR }}/p2ce/fgd-p2ce.zip
Expand Down

0 comments on commit ae99da6

Please sign in to comment.