Skip to content

Commit

Permalink
cicd: add simple release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhobbel committed Dec 14, 2020
1 parent d17bf5d commit b3c2cfe
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release

on:
push:
tags:
- v*
jobs:
publish:
name: Publish Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: Create Artifact
run: |
zip -i **/*.lua mod.json -r VEManager .
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./VEManager.zip
asset_name: VEManager-${{ steps.get_version.outputs.VERSION }}.zip
asset_content_type: application/zip
4 changes: 2 additions & 2 deletions mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"Name": "VEManager",
"Authors": ["Powback"],
"Description": "Handles VE",
"URL": "",
"Version": "0",
"URL": "https://github.com/BF3RM/VEManager",
"Version": "0.1.0",
"HasWebUI": false,
"HasVeniceEXT": true
}

0 comments on commit b3c2cfe

Please sign in to comment.