mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
Add pre-release action
This commit is contained in:
parent
9f9444a72b
commit
732a62f1ee
33
.github/workflows/pre-release.yml
vendored
Normal file
33
.github/workflows/pre-release.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: Pre Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows: ["Build"]
|
||||||
|
branches: [main]
|
||||||
|
types: [completed]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pre-release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# Checkout repository and submodules
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: "Archive all"
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install git-archive-all
|
||||||
|
git-archive-all --force-submodules --prefix=globalprotect-openconnect-latest/ ./globalprotect-openconnect_latest.orig.tar.gz
|
||||||
|
|
||||||
|
- uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
|
with:
|
||||||
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
automatic_release_tag: "latest"
|
||||||
|
prerelease: true
|
||||||
|
title: "Development Build"
|
||||||
|
files: |
|
||||||
|
*.tar.gz
|
Loading…
Reference in New Issue
Block a user