2022-08-07 22:15:10 +02:00
|
|
|
name: 'Auto-release'
|
2022-08-07 22:09:40 +02:00
|
|
|
|
|
|
|
# Controls when the action will run. Triggers the workflow on push or pull request
|
|
|
|
# events but only for the develop branch
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [develop]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
auto-release:
|
|
|
|
name: 'Auto Release'
|
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
steps:
|
2022-08-07 22:35:49 +02:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Changelog
|
|
|
|
uses: scottbrenner/generate-changelog-action@master
|
|
|
|
id: Changelog
|
|
|
|
env:
|
|
|
|
REPO: ${{ github.repository }}
|
2022-08-07 23:20:02 +02:00
|
|
|
- id: next_version
|
|
|
|
uses: zwaldowski/semver-release-action@v2
|
|
|
|
with:
|
|
|
|
prefix: v
|
|
|
|
dry_run: true
|
|
|
|
bump: patch
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2022-08-07 22:35:49 +02:00
|
|
|
- name: Create Release
|
|
|
|
id: create_release
|
|
|
|
uses: actions/create-release@latest
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2022-08-07 22:09:40 +02:00
|
|
|
with:
|
2022-08-07 23:20:02 +02:00
|
|
|
tag_name: ${{ steps.next_version.outputs.version}}
|
2022-08-07 22:35:49 +02:00
|
|
|
release_name: Main Scenario
|
|
|
|
body: |
|
|
|
|
This is the main release of the stable version of Factorio.
|
|
|
|
Check out the [wiki](https://github.com/ComfyFactory/ComfyFactorio/wiki) for getting started.
|
|
|
|
${{ steps.Changelog.outputs.changelog }}
|
|
|
|
draft: false
|
2022-08-07 22:12:52 +02:00
|
|
|
prerelease: false
|