Skip to content

Commit

Permalink
ref(workflow): Refactor and make some minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vanishdevs committed Aug 4, 2024
1 parent 1da6e1e commit c0db3f7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.repository.default_branch }}

- name: Get variables
id: get_vars
run: |
echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
echo "DATE=$(date +'%D')" >> $GITHUB_ENV
echo '::set-output name=SHORT_SHA::$(git rev-parse --short HEAD)'
echo '::set-output name=DATE::$(date +'%D')'
- name: Bump manifest version
run: node .github/actions/bump-manifest-version.js
Expand All @@ -42,12 +43,12 @@ jobs:
- name: Update tag ref
uses: EndBug/latest-tag@latest
with:
tag-name: ${{ github.ref_name }}
ref: ${{ github.ref_name }}

- name: Bundle files
run: |
mkdir -p ./temp/vanish_basics
cp ./{README.md,LICENSE,fxmanifest.lua} ./temp/vanish_basics
cp ./{LICENSE,README.md,fxmanifest.lua} ./temp/vanish_basics
cp -r ./{client,meta,server,shared,stream} ./temp/vanish_basics
cd ./temp && zip -r ../vanish_basics.zip ./vanish_basics
Expand All @@ -56,9 +57,10 @@ jobs:
id: auto_release
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: "${{ github.ref_name }}"
title: '${{ env.RELEASE_VERSION }}'
prerelease: false
files: vanish_basics.zip
files: ${{ github.event.repository.name }}.zip

env:
CI: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c0db3f7

Please sign in to comment.