Skip to content

Commit

Permalink
chore(ci/cd): add init workflow 🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
0xwal committed Sep 27, 2023
1 parent 6137aa8 commit 58d3289
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 0xrelease

on:
push:

jobs:
release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Resolve version
run: |
echo version=$(git tag | sort -V | tail -1) >> $GITHUB_ENV
- name: Preparing Files
run: |
mkdir 0xludb-fivem
mkdir -p 0xludb-fivem/deps/ludb
mv deps/ludb/ludb.lua 0xludb-fivem/deps/ludb.lua
mv *.lua 0xludb-fivem
mv README.md 0xludb-fivem
- name: Add meta files
run: |
echo "${{vars.IMPORTANT}}" > 0xludb-fivem/IMPORTANT.txt
- name: Zipping
run: |
zip -r ./0xludb-fivem-${{ env.version }}.zip 0xludb-fivem
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
tag_name: ${{env.version}}
with:
files: ./0xludb-fivem-${{ env.version }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 58d3289

Please sign in to comment.