Skip to content

Update dependencies #18

Update dependencies

Update dependencies #18

Workflow file for this run

on:
push:
tags:
- 'v*'
name: Publish release
jobs:
publish:
name: Publish release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
tools: composer
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install Composer dependencies
working-directory: ./public/install/api
run: composer install --no-progress
- name: Install Node.JS dependencies
run: npm install
- name: Create build
run: npm run build
- name: Create ZIP file
working-directory: ./dist
run: zip install.zip -r install install.html
- 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: true
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: ./dist/install.zip
asset_name: install.zip
asset_content_type: application/zip