diff --git a/.github/workflows/publish-macros.yml b/.github/workflows/publish-macros.yml new file mode 100644 index 0000000..08f82b3 --- /dev/null +++ b/.github/workflows/publish-macros.yml @@ -0,0 +1,16 @@ +name: Publish (zfi-macros) +on: + push: + tags: + - 'macros-v*' +jobs: + publish: + name: Publish + runs-on: ubuntu-22.04 + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + steps: + - name: Checkout source + uses: actions/checkout@v3 + - name: Publish + run: cargo publish -p zfi-macros diff --git a/.github/workflows/cd.yml b/.github/workflows/publish-testing-macros.yml similarity index 52% rename from .github/workflows/cd.yml rename to .github/workflows/publish-testing-macros.yml index 7330a76..762bb77 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/publish-testing-macros.yml @@ -1,8 +1,8 @@ -name: CD +name: Publish (zfi-testing-macros) on: push: tags: - - '*' + - 'testing-macros-v*' jobs: publish: name: Publish @@ -12,11 +12,5 @@ jobs: steps: - name: Checkout source uses: actions/checkout@v3 - - name: Publish zfi-macros - run: cargo publish -p zfi-macros - - name: Publish zfi-testing-macros + - name: Publish run: cargo publish -p zfi-testing-macros - - name: Publish zfi-testing - run: cargo publish -p zfi-testing - - name: Publish zfi - run: cargo publish diff --git a/.github/workflows/publish-testing.yml b/.github/workflows/publish-testing.yml new file mode 100644 index 0000000..7ed4fda --- /dev/null +++ b/.github/workflows/publish-testing.yml @@ -0,0 +1,16 @@ +name: Publish (zfi-testing) +on: + push: + tags: + - 'testing-v*' +jobs: + publish: + name: Publish + runs-on: ubuntu-22.04 + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + steps: + - name: Checkout source + uses: actions/checkout@v3 + - name: Publish + run: cargo publish -p zfi-testing diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..c46c6e3 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,16 @@ +name: Publish (zfi) +on: + push: + tags: + - 'v*' +jobs: + publish: + name: Publish + runs-on: ubuntu-22.04 + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + steps: + - name: Checkout source + uses: actions/checkout@v3 + - name: Publish + run: cargo publish