Skip to content

Commit

Permalink
👷 Added pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
LNA-DEV committed Jun 24, 2023
1 parent affce70 commit 498fd3c
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/BuildAndPublish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: BuildAndPublish

on:
workflow_dispatch:
push:
branches: [main]

jobs:
Prepare:
runs-on: ubuntu-latest

steps:
- uses: Fedodo/Fedodo.Pipelines/PrepareDart@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CreateTag:
runs-on: ubuntu-latest
needs: Prepare
steps:
- uses: Fedodo/Fedodo.Pipelines/CreateTagDart@main
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
REPO_NAME: Fedodo.Pub.General
35 changes: 35 additions & 0 deletions .github/workflows/Publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish

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

jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- run: git pull origin main

# Setup Dart SDK with JWT token
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f

# Minimal package setup and dry run checks.
- name: Install dependencies
run: dart pub get
# working-directory: ${{ inputs.working-directory }}

- name: Publish - dry run
run: dart pub publish --dry-run
# working-directory: ${{ inputs.working-directory }}

# Publishing...
- name: Publish to pub.dev
run: dart pub publish -f
# working-directory: ${{ inputs.working-directory }}

0 comments on commit 498fd3c

Please sign in to comment.