Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Mojito-Fivem/mojito_pdm
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamDormon committed Oct 17, 2021
2 parents faca642 + ce0bc8b commit 1bb96dc
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and release

on:
push:
tags:
- v*


jobs:
build:
name: "Build and Release"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]

steps:
# We fetch to 0 so we can collect the commits
# since last update
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.ref }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Build project
run: npm run build:release

- name: Zip release
run: |
cd release && zip -r ../mojito_pdm.zip .
- name: Create and Upload Release
uses: "marvinpinto/[email protected]"
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
files: mojito_pdm.zip

0 comments on commit 1bb96dc

Please sign in to comment.