Skip to content

Commit

Permalink
Add action to auto-release pushes to main
Browse files Browse the repository at this point in the history
  • Loading branch information
charliefoxtwo committed Sep 21, 2023
1 parent ef74f4a commit 3f70040
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/release-openbeta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Release latest openbeta

on:
push:
branches:
- master

env:
RELEASE_FILE_NAME: 'DCS-BIOS_openbeta.zip'

jobs:
release:
runs-on: ubuntu-latest

permissions:
contents: write

name: Release zip file
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Archive Release
uses: thedoctor0/zip-release@0.7.1
with:
type: zip
filename: 'DCS-BIOS_openbeta.zip'
directory: './Scripts'
exclusions: '/*test/*'

- name: Update latest tag
uses: rickstaa/action-create-tag@v1
id: tag_create
with:
tag: latest
force_push_tag: true
message: Latest release

- name: Upload Release
uses: ncipollo/release-action@v1.12.0
with:
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: './Scripts/DCS-BIOS_openbeta.zip'
commit: master
makeLatest: true
name: DCS-BIOS Openbeta
prerelease: true
removeArtifacts: true
tag: latest
updateOnlyUnreleased: true
1 change: 1 addition & 0 deletions Scripts/Export.lua
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dofile(lfs.writedir()..[[Scripts\DCS-BIOS\BIOS.lua]])
-- some other stuff to export

0 comments on commit 3f70040

Please sign in to comment.