From 847214c0a840a14c56248ce49e023e9381c807dc Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 29 Dec 2019 19:00:46 -0800 Subject: [PATCH] Yet another different way to upload release assets --- .github/workflows/tag_fedora.yml | 14 +++++++------- .github/workflows/tag_posix.yml | 19 ++++++++++++------- .github/workflows/tag_win.yml | 19 ++++++++++++------- 3 files changed, 31 insertions(+), 21 deletions(-) diff --git a/.github/workflows/tag_fedora.yml b/.github/workflows/tag_fedora.yml index 1b214087e80..8d9ccc76178 100644 --- a/.github/workflows/tag_fedora.yml +++ b/.github/workflows/tag_fedora.yml @@ -1,9 +1,9 @@ name: tag_fedora on: - release: - types: - - created + push: + tags: + - "20*" jobs: build: @@ -51,8 +51,8 @@ jobs: run: | mv ~/rpmbuild/RPMS/*/*.rpm . - name: Upload Assets - uses: AButler/upload-release-assets@v1.0 + uses: softprops/action-gh-release@v1 with: - # allows comma-separated list of case sensitive globs - files: "wezterm-*.rpm" - repo-token: ${{ secrets.GITHUB_TOKEN }} + files: wezterm-*.rpm + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tag_posix.yml b/.github/workflows/tag_posix.yml index f986e29f7a4..aad3f1a412b 100644 --- a/.github/workflows/tag_posix.yml +++ b/.github/workflows/tag_posix.yml @@ -1,9 +1,9 @@ name: tag_posix on: - release: - types: - - created + push: + tags: + - "20*" jobs: build: @@ -43,8 +43,13 @@ jobs: cargo build --release --all bash ci/deploy.sh - name: Upload Assets - uses: AButler/upload-release-assets@v1.0 + uses: softprops/action-gh-release@v1 with: - # allows comma-separated list of case sensitive globs - files: "wezterm-*.deb,WezTerm-*.zip,wezterm-*.xz,wezterm-*.rpm,wezterm-*.tar.gz" - repo-token: ${{ secrets.GITHUB_TOKEN }} + files: | + wezterm-*.rpm + wezterm-*.deb + WezTerm-*.zip + wezterm-*.xz + weztern-*.tar.gz + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tag_win.yml b/.github/workflows/tag_win.yml index 5eca40150ef..db8cf4e6be1 100644 --- a/.github/workflows/tag_win.yml +++ b/.github/workflows/tag_win.yml @@ -1,9 +1,9 @@ name: tag_win on: - release: - types: - - created + push: + tags: + - "20*" jobs: build: @@ -43,9 +43,14 @@ jobs: cargo build --release --all bash ci/deploy.sh - name: Upload Assets - uses: AButler/upload-release-assets@v1.0 + uses: softprops/action-gh-release@v1 with: - # allows comma-separated list of case sensitive globs - files: "wezterm-*.deb,WezTerm-*.zip,wezterm-*.xz,wezterm-*.rpm,wezterm-*.tar.gz" - repo-token: ${{ secrets.GITHUB_TOKEN }} + files: | + wezterm-*.rpm + wezterm-*.deb + WezTerm-*.zip + wezterm-*.xz + weztern-*.tar.gz + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}