Skip to content

Commit

Permalink
πŸ”€ Merge pull request #4 from Fedodo/dev
Browse files Browse the repository at this point in the history
πŸ‘· Changed to CreateTag Pipeline
  • Loading branch information
LNA-DEV authored Jun 24, 2023
2 parents f770aab + ca7dfe4 commit 480a03f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 41 deletions.
44 changes: 4 additions & 40 deletions .github/workflows/BuildAndPublish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,43 +18,7 @@ jobs:
runs-on: ubuntu-latest
needs: Prepare
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- run: git pull origin main

- name: Set PUBSPEC_VERSION
run: |
version=$(grep 'version:' pubspec.yaml | tail -n1 | awk '{ print $2}')
echo $version
echo "PUBSPEC_VERSION=$version" >> "$GITHUB_ENV"
- run: echo "${{ env.PUBSPEC_VERSION }}"

- run: echo "$(cat CHANGELOG.md)"

- run: |
git tag v${{ env.PUBSPEC_VERSION }}
git remote set-url origin "https://LNA-DEV:${{ secrets.GH_TOKEN }}@github.com/Fedodo/Fedodo.Pub.ActivityPub.git"
git push origin v${{ env.PUBSPEC_VERSION }}
- name: Create Release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}"
with:
tag_name: v${{ env.PUBSPEC_VERSION }}
release_name: v${{ env.PUBSPEC_VERSION }}
draft: false
prerelease: false

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GH_TOKEN }}"
automatic_release_tag: "v${{ env.PUBSPEC_VERSION }}"
prerelease: false
- uses: Fedodo/Fedodo.Pipelines/CreateTagDart@main
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
REPO_NAME: Fedodo.Pub.ActivityPub
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: activitypub
description: A library for the ActivityPub standard. Created an also used by Fedodo.
version: 1.1.3
version: 1.1.4
repository: https://github.com/Fedodo/Fedodo.Pub.ActivityPub

environment:
Expand Down

0 comments on commit 480a03f

Please sign in to comment.