This commit is contained in:
16
.gitea/workflows/push_to_main.yaml
Normal file
16
.gitea/workflows/push_to_main.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
name: Push to main
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Reset-Version-Tag:
|
||||||
|
runs-on: debian-bullseye
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- run: git tag -d v1 || true
|
||||||
|
- run: git push --delete origin v1 || true
|
||||||
|
- run: git tag v1
|
||||||
|
- run: git push --tags
|
||||||
2
action.sh
Normal file
2
action.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
dart pub token add --env-var=INPUT_PUB_REPO_KEY $INPUT_PUB_REPO_DOMAIN
|
||||||
|
dart pub publish --skip-validation -f
|
||||||
16
action.yaml
Normal file
16
action.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
name: pub-publish
|
||||||
|
description: "publishes latest version tag to a pub repository"
|
||||||
|
author: "Bryce Thorup"
|
||||||
|
inputs:
|
||||||
|
npm_repo_key:
|
||||||
|
description: Key used for publising to pub repo
|
||||||
|
required: true
|
||||||
|
npm_repo_domain:
|
||||||
|
description: Domain for pub repo
|
||||||
|
required: true
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- uses: dart-lang/setup-dart@v1
|
||||||
|
- run: $GITHUB_ACTION_PATH/action.sh
|
||||||
|
shell: bash
|
||||||
Reference in New Issue
Block a user