Skip to content

Commit

Permalink
Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonym-tsk committed Sep 5, 2024
1 parent 513d5e8 commit 06ef8f0
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 34 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Bump version

on:
workflow_dispatch:
branches:
- master
# push:
# branches:
# - 'master'
# paths-ignore:
# - 'VERSION'
# pull_request:
# branches:
# - 'master'
# paths-ignore:
# - 'VERSION'

permissions:
contents: write

jobs:
bump_version:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Bump version file
uses: francktrouillez/auto-bump-version-file@v1
with:
file: 'VERSION'

- name: Read version
id: version
uses: juliangruber/read-file-action@v1
with:
path: ./VERSION
trim: true

- name: Commit and push version file
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: Version ${{ steps.version.outputs.content }}
branch: master
38 changes: 4 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,22 @@
name: Build and publish release

on:
workflow_dispatch:
push:
branches:
- master
# push:
# branches: [ "master" ]
# pull_request:
# branches: [ "master" ]
- 'master'
paths:
- 'VERSION'

permissions:
contents: write

jobs:
bump_version:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Bump version file
uses: francktrouillez/auto-bump-version-file@v1
with:
file: 'VERSION'

- name: Read version
id: version
uses: juliangruber/read-file-action@v1
with:
path: ./VERSION
trim: true

- name: Commit and push version file
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: Version ${{ steps.version.outputs.content }}
branch: master

build_release:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Read version
id: version
Expand Down

0 comments on commit 06ef8f0

Please sign in to comment.