-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.2 KB
/
release.yaml
File metadata and controls
42 lines (35 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Publish release
on:
push:
branches:
- main # Trigger on pushes to the main branch
jobs:
publish_release:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create Version
uses: dexwritescode/release-on-merge-action@v1 # Or another suitable action
id: version_tracker
with:
version-increment-strategy: patch
dry-run: true
initial-version: '1.0.0'
- name: Modify the file
run: |
perl -pi -e 's/0\.0\.0/${{ steps.version_tracker.outputs.version }}/' DevSetup.psd1
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Automated Release Tagging for ${{ steps.version_tracker.outputs.version }} in DevSetup.psd1"
branch: main
- name: Create Tagged Release
uses: dexwritescode/release-on-merge-action@v1 # Or another suitable action
with:
version-increment-strategy: patch
initial-version: '1.0.0'