docs: clean up changelog for future releases (#32) #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
name: Run Release Please | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
# Release-please creates a PR that tracks all changes | |
steps: | |
- uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
release-type: simple | |
command: manifest | |
default-branch: main | |
- name: Dump Release Please Output | |
env: | |
RELEASE_PLEASE_OUTPUT: ${{ toJson(steps.release.outputs) }} | |
run: | | |
echo "$RELEASE_PLEASE_OUTPUT" | |
outputs: | |
release_created: ${{ steps.release.outputs.release_created }} | |
flutter-release: | |
needs: release-please | |
runs-on: ubuntu-latest | |
env: | |
FLUTTER_CHANNEL: stable | |
FLUTTER_VERSION: 3.27.3 | |
if: ${{ needs.release-please.outputs.release_created }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ needs.release-please.outputs.release_tag_name }} | |
- name: fetch submodules | |
run: git submodule update --init --recursive | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
- name: Copy iOS | |
working-directory: ios/Classes | |
run: cp -r confidence-sdk/Sources/Confidence . | |
- name: Remove the submodule | |
working-directory: ios/Classes | |
run: rm -rf confidence-sdk && git rm -r --cached . | |
- name: Setup Pub Credentials | |
shell: bash | |
env: | |
PUB_ACCESS_TOKEN: ${{ secrets.PUB_ACCESS_TOKEN }} | |
PUB_REFRESH_TOKEN: ${{ secrets.PUB_REFRESH_TOKEN }} | |
PUB_TOKEN_ENDPOINT: ${{ secrets.PUB_TOKEN_ENDPOINT }} | |
PUB_EXPIRATION: ${{ secrets.PUB_EXPIRATION }} | |
run: | | |
sh ./pub_login.sh | |
- name: Check Publish Warnings | |
run: | | |
flutter pub publish --dry-run | |
- name: Publish Package | |
run: | | |
yes | flutter pub publish |