2022-03-10 01:32:29 +01:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
2023-10-29 10:41:54 +01:00
|
|
|
workflow_dispatch: {}
|
2022-03-10 01:32:29 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release
|
|
|
|
runs-on: ubuntu-latest
|
2023-10-29 00:51:03 +02:00
|
|
|
permissions:
|
2023-10-29 10:21:57 +01:00
|
|
|
contents: write
|
2023-10-29 00:51:03 +02:00
|
|
|
id-token: write
|
2022-03-10 01:32:29 +01:00
|
|
|
steps:
|
2022-12-08 17:06:02 +01:00
|
|
|
- name: Checkout repository
|
2023-09-24 13:12:17 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-07-05 16:24:49 +02:00
|
|
|
with:
|
2022-12-08 17:06:02 +01:00
|
|
|
# We have to checkout main or PNPM fails. Tag should be on main anyway.
|
|
|
|
ref: main
|
|
|
|
|
2023-09-24 17:14:43 +02:00
|
|
|
- name: Setup
|
|
|
|
uses: ./.github/actions/setup
|
2022-07-05 16:24:49 +02:00
|
|
|
with:
|
2023-09-24 17:14:43 +02:00
|
|
|
node-registry: https://registry.npmjs.org
|
2022-12-08 17:06:02 +01:00
|
|
|
|
2023-10-29 10:41:54 +01:00
|
|
|
# - name: Generate changelog file
|
|
|
|
# uses: rhysd/changelog-from-release/action@v3
|
|
|
|
# with:
|
|
|
|
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# file: packages/iconoir-flutter/CHANGELOG.md
|
|
|
|
# commit: false
|
|
|
|
# args: -d=false
|
2022-12-08 17:06:02 +01:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: pnpm run build
|
|
|
|
|
2023-10-29 10:41:54 +01:00
|
|
|
# - name: Prepare packages
|
|
|
|
# run: pnpm run prepublish-all
|
|
|
|
# env:
|
|
|
|
# TAG_NAME: ${{ github.ref_name }}
|
2022-12-08 17:06:02 +01:00
|
|
|
|
2023-10-29 10:41:54 +01:00
|
|
|
# - name: Commit release
|
|
|
|
# uses: stefanzweifel/git-auto-commit-action@v5
|
|
|
|
# with:
|
|
|
|
# commit_message: Release Version ${{ github.ref_name }}
|
|
|
|
# branch: main
|
2022-12-08 17:06:02 +01:00
|
|
|
|
2023-10-29 10:41:54 +01:00
|
|
|
# - name: Update tag
|
|
|
|
# run: |
|
|
|
|
# git -c user.email="actions@github.com" -c user.name="GitHub Actions" tag -fa ${{ github.ref_name }} -m "${{ github.ref_name }}"
|
|
|
|
# git push -f origin ${{ github.ref_name }}
|
2022-12-08 17:06:02 +01:00
|
|
|
|
2023-10-29 10:41:54 +01:00
|
|
|
# - name: Publish packages
|
|
|
|
# run: pnpm -r publish --access public
|
|
|
|
# env:
|
|
|
|
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
# NPM_CONFIG_PROVENANCE: true
|
2022-12-08 17:06:02 +01:00
|
|
|
|
2022-12-08 17:23:52 +01:00
|
|
|
- name: Publish Flutter
|
2023-09-24 13:12:17 +02:00
|
|
|
uses: k-paxian/dart-package-publisher@v1.6
|
2022-12-08 17:23:52 +01:00
|
|
|
with:
|
2022-12-08 17:37:59 +01:00
|
|
|
credentialJson: ${{ secrets.PUB_CREDENTIAL_JSON }}
|
|
|
|
relativePath: ./packages/iconoir-flutter
|
2022-12-08 17:49:31 +01:00
|
|
|
|
2023-10-29 10:41:54 +01:00
|
|
|
# - name: Trigger Website Workflow
|
|
|
|
# uses: actions/github-script@v6
|
|
|
|
# with:
|
|
|
|
# script: |
|
|
|
|
# github.rest.actions.createWorkflowDispatch({
|
|
|
|
# owner: context.repo.owner,
|
|
|
|
# repo: context.repo.repo,
|
|
|
|
# workflow_id: 'website.yaml',
|
|
|
|
# ref: 'main',
|
|
|
|
# })
|