Skip to content

Update plugin version to 1.0.1-beta06 #17

Update plugin version to 1.0.1-beta06

Update plugin version to 1.0.1-beta06 #17

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: πŸš€ Publish Tapsell Mediation Flutter Release TAG
# Controls when the workflow will run
on: push
jobs:
build:
name: βš™οΈ Release
runs-on: ubuntu-latest
steps:
- name: πŸ› οΈ Get Current Date
id: date
run: |
echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: πŸ”ƒ Checkout branch "master"
uses: actions/checkout@v4
with:
ref: 'master'
- name: πŸ”– Get Flutter Version
id: version
run: |
TAG_VERSION=$(cat pubspec.yaml | grep "version:.*" | awk '{ print $2}')
echo "$TAG_VERSION"
echo "::set-output name=tag_name::v${TAG_VERSION}"
echo "::set-output name=release_name::TapsellMediation-Flutter-v${TAG_VERSION:-Package}"
- name: πŸ“’ Prepare Release Notes
id: release_notes
run: |
awk '/^# / {s++} s == 1 {print}' CHANGELOG.md > /tmp/release_notes.md
echo "::set-output name=path::/tmp/release_notes.md"
- name: πŸ›ŽοΈ Create Release + TAG
id: release-snapshot
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.version.outputs.tag_name }}
name: ${{ steps.version.outputs.release_name }}
body: ${{ steps.date.outputs.date }} - See [This doc](https://docs.tapsell.ir/mediation/flutter) to implement the Tapsell SDK into your app.
body_path: ${{ steps.release_notes.outputs.path }}
target_commitish: ${{ github.sha }}
draft: false
prerelease: false
generate_release_notes: true
files: |
CHANGELOG.md
README.md