wingetautoupdate/.github/workflows/AutoCreatePreVersion.yml

49 lines
1.4 KiB
YAML
Raw Normal View History

2023-04-12 12:11:31 +00:00
name: Auto Create Pre-Release Version
on:
2023-04-12 12:34:23 +00:00
workflow_dispatch:
2023-04-12 12:11:31 +00:00
pull_request:
types:
- closed
2023-04-12 12:30:51 +00:00
permissions:
contents: write
2023-04-12 12:11:31 +00:00
jobs:
build:
name: Create Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
lfs: 'true'
- name: Build project # This would actually build your project, using zip for an example artifact
run: |
zip -r WAU Winget-AutoUpdate/*
zip -r WAU Winget-AutoUpdate-Install.ps1
zip -r WAU excluded_apps.txt
zip -r WAU install.bat
zip -r WAU uninstall.bat
- name: Auto Increment Semver Action
uses: MCKanpolat/auto-semver-action@v1
id: versioning
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
2023-04-12 12:56:47 +00:00
- uses: "finnp/create-file-action@master"
env:
FILE_NAME: "Winget-AutoUpdate/Winget-AutoUpdate/Version.txt"
FILE_DATA: "${{ steps.versioning.outputs.version }}"
2023-04-12 12:11:31 +00:00
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "v${{ steps.versioning.outputs.version }}"
prerelease: true
title: "v${{ steps.versioning.outputs.version }}"
files: |
WAU.zip