Skip to content

Commit

Permalink
Merge pull request #10 from edpichler/release-ci2
Browse files Browse the repository at this point in the history
Automatic releases.
  • Loading branch information
edpichler committed May 21, 2023
2 parents aadc415 + 49302a6 commit a4a5165
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 26 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/continuos-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,39 @@ on:
branches:
- master
- develop
- release-ci
jobs:
run-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Release version
run: echo "BUILD_VERSION=$(cat version.txt).${{ github.run_number }}" >> $GITHUB_ENV
if: github.ref == 'refs/heads/master'
- name: Beta Release version
run: echo "BUILD_VERSION=$(cat version.txt).${{ github.run_number }}-beta" >> $GITHUB_ENV
if: github.ref == 'refs/heads/develop'
- name: Commit files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git tag -f v$(cat version.txt)
git tag -f ${{ env.BUILD_VERSION }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: ${{ github.ref }}
force: true
tags: true
tags: true
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag_name: ${{ env.BUILD_VERSION }}
release_name: ${{ env.BUILD_VERSION }}
# body: |
# ${{ steps.Changelog.outputs.changelog }}
draft: false
prerelease: false
22 changes: 0 additions & 22 deletions .github/workflows/github-release.yml

This file was deleted.

Empty file added .github/workflows/release.yml
Empty file.
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.2
1.0.0

0 comments on commit a4a5165

Please sign in to comment.