Skip to content

Commit

Permalink
ci: Added 2 ci jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Nov 26, 2023
1 parent f0e7951 commit 1ef6ece
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/create_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Automated version bump

on:
push:
branches:
- main

jobs:
bump_version:
name: Version bump on main
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: "actions/checkout@v2"
with:
ref: ${{ github.ref }}
- name: cat pubspec.yaml
run: cat ./pubspec.yaml
- name: Automated version bump
uses: impaktfull/[email protected]
with:
tag-prefix: 'v'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: cat pubspec.yaml
run: cat ./pubspec.yaml
14 changes: 14 additions & 0 deletions .github/workflows/publish_to_pubdev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Publish to pub.dev

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
permissions:
id-token: write
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
environment: 'pub.dev'

0 comments on commit 1ef6ece

Please sign in to comment.