Merge pull request #141 from famedly/td/ci

chore: add general and publish ci
This commit is contained in:
td 2023-10-04 10:23:18 +00:00 committed by GitHub
commit e9236bc8b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 0 deletions

25
.github/workflows/general.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: General CI
on:
push:
branches:
- main
pull_request:
merge_group:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
dart:
permissions:
contents: read
uses: famedly/frontend-ci-templates/.github/workflows/dart.yml@main
with:
env_file: ".github/workflows/versions.env"
general:
permissions:
contents: read
uses: famedly/frontend-ci-templates/.github/workflows/general.yml@main

13
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: Publish CI
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
publish:
permissions:
contents: read
id-token: write
uses: famedly/frontend-ci-templates/.github/workflows/publish-pub.yml@main

2
.github/workflows/versions.env vendored Normal file
View File

@ -0,0 +1,2 @@
flutter_version=3.13.6
dart_version=3.1.3