1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 02:25:28 +03:00

ci: set release as pre-release when tagging

also looks like I missed updating the source tarball
generation step in a prior adjustment.
This commit is contained in:
Wez Furlong 2020-10-30 22:09:58 -07:00
parent 863a64cea2
commit 0547fbb549
15 changed files with 27 additions and 4 deletions

View File

@ -84,5 +84,6 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: "wezterm-*.rpm"
prerelease: true
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -71,5 +71,6 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: "wezterm-*.rpm"
prerelease: true
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -72,5 +72,6 @@ jobs:
wezterm-*.xz
wezterm-*.tar.gz
prerelease: true
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -91,5 +91,6 @@ jobs:
wezterm-*.xz
wezterm-*.tar.gz
prerelease: true
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -65,5 +65,6 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: "wezterm-*.rpm"
prerelease: true
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -65,5 +65,6 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: "wezterm-*.rpm"
prerelease: true
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -71,6 +71,7 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: "WezTerm-*.zip"
prerelease: true
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: "Checkout homebrew tap"

View File

@ -64,6 +64,9 @@ jobs:
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"
- name: "Source Tarball"
shell: bash
run: "bash ci/source-archive.sh"
- name: "Build AppImage"
shell: bash
run: "bash ci/appimage.sh"

View File

@ -89,6 +89,13 @@ jobs:
bash ci/deploy.sh
- name: "Source Tarball"
shell: bash
run: |
export BUILD_REASON=Schedule
bash ci/source-archive.sh
- name: "Build AppImage"
shell: bash
run: |

View File

@ -58,6 +58,9 @@ jobs:
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"
- name: "Source Tarball"
shell: bash
run: "bash ci/source-archive.sh"
- name: "Build AppImage"
shell: bash
run: "bash ci/appimage.sh"
@ -71,6 +74,7 @@ jobs:
*.AppImage
*.zsync
prerelease: true
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: "Update AUR"

View File

@ -66,5 +66,6 @@ jobs:
wezterm-*.xz
wezterm-*.tar.gz
prerelease: true
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -72,5 +72,6 @@ jobs:
wezterm-*.xz
wezterm-*.tar.gz
prerelease: true
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -72,5 +72,6 @@ jobs:
wezterm-*.xz
wezterm-*.tar.gz
prerelease: true
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -61,5 +61,6 @@ jobs:
WezTerm-*.zip
WezTerm-*.exe
prerelease: true
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -197,9 +197,7 @@ ln -s /usr/local/git/bin/git /usr/local/bin/git
def install_rust(self, cache=True):
salt = "2"
key_prefix = (
f"{self.name}-{self.rust_target}-{salt}-${{{{ runner.os }}}}-${{{{ hashFiles('**/Cargo.lock') }}}}"
)
key_prefix = f"{self.name}-{self.rust_target}-{salt}-${{{{ runner.os }}}}-${{{{ hashFiles('**/Cargo.lock') }}}}"
params = {
"profile": "minimal",
"toolchain": "stable",
@ -330,7 +328,7 @@ cargo build --all --release""",
ActionStep(
"Upload to Tagged Release",
action="softprops/action-gh-release@v1",
params={"files": "\n".join(patterns)},
params={"files": "\n".join(patterns), "prerelease": True},
env={"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}",},
)
]