Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 0 additions & 65 deletions .github/workflows/publish-yew-agent.yml

This file was deleted.

66 changes: 0 additions & 66 deletions .github/workflows/publish-yew-only.yml

This file was deleted.

65 changes: 0 additions & 65 deletions .github/workflows/publish-yew-router-only.yml

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/publish-yew-router.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Publish yew & yew-macro
name: Publish yew package(s)

permissions:
contents: write

Expand All @@ -13,6 +14,11 @@ on:
- patch
- minor
- major
packages:
description: "List of packages to publish (space separated)"
required: true
type: string

jobs:
publish:
name: Publish yew
Expand Down Expand Up @@ -43,17 +49,27 @@ jobs:
- name: Cargo login
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}

- name: Release yew-macro
run: cargo release ${{ github.event.inputs.level }} --execute --no-confirm --package yew-macro
- name: Build command
shell: bash
env:
PACKAGES: ${{ github.event.inputs.packages }}
run: |
output=""
for pkg in ${{ github.event.inputs.packages }}
do
output+="--package $pkg "
done
echo "pkg=$output" >> $GITHUB_ENV

- name: Release yew
run: cargo release ${{ github.event.inputs.level }} --execute --no-confirm --package yew
run: cargo release ${{ github.event.inputs.level }} --execute --no-confirm ${{ env.pkg }}

- name: Get tag
id: gettag
uses: WyriHaximus/github-action-get-previous-tag@v1

- name: Create a version branch
if: github.event.inputs.level != 'patch'
uses: peterjgrainger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down