Skip to content

Commit

Permalink
cicid: migrate to vumm-action
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhobbel committed Mar 25, 2021
1 parent b3c2cfe commit c5e7108
Showing 1 changed file with 7 additions and 29 deletions.
36 changes: 7 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,17 @@
name: Release
name: release

on:
push:
tags:
- v*
release:
types: [published]

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
- name: Publish to VUMM
uses: BF3RM/vumm-action@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
VUMM_TOKEN: ${{ secrets.VUMM_TOKEN }}

0 comments on commit c5e7108

Please sign in to comment.