Create .gitlab-ci.yml

This commit is contained in:
Masterain
2023-12-16 22:33:43 -08:00
committed by GitHub
parent 442db0bae4
commit 0bedd1894c

19
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,19 @@
stages:
- fetch
Fetch:
stage: fetch
rules:
- when: manual
tags:
- us3
script:
- apt-get update -qy
- apt-get install -y curl jq
- RELEASE_INFO=$(curl -sSL "https://api.github.com/repos/$CI_PROJECT_PATH/releases/latest")
- ASSET_URL=$(echo "$RELEASE_INFO" | jq -r '.assets[] | select(.name | endswith(".msix")) | .browser_download_url')
- curl -LJO "$ASSET_URL"
artifacts:
paths:
- "*.msix"
expire_in: 180 days