Skip to content
Permalink
Browse files
add nightly build workflow (#32)
update nightly to run on branch push

fix install deps job

limit os to only 1 instead of 3, switch npm to yarn

fix package command

add checkout of repo

fix deploy release

update workflows and remove travis ci file

try to fix release file

fix release yml

fix release action

fix git-tag name used for file

fix git tag

try different way of getting the tag
  • Loading branch information
Shanedell committed Jun 24, 2021
1 parent 3ad1c6e commit c2d9bf4b34f38004d332259d393d1f66bfe1d1d5
Showing 3 changed files with 76 additions and 4 deletions.
@@ -0,0 +1,38 @@
---
name: Deploy Nightly
on:
schedule:
- cron: '0 2 * * *' # run at 2 AM UTC

jobs:
nightly:
name: Deploy nightly
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '14.x'

- name: Install dependencies
run: yarn install

- name: Create vsix
run: |
yarn run package -o extension-nightly.vsix
- name: Deploy release
uses: WebFreak001/deploy-nightly@v1.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # automatically provided by github actions
with:
upload_url: https://uploads.github.com/repos/jw3/example-daffodil-vscode/releases/45167120/assets{?name,label}
release_id: 45167120
asset_path: ${{github.workspace}}/extension-nightly.vsix
asset_name: daffodil-debug-nightly.vsix
asset_content_type: vsix
max_releases: 1
@@ -0,0 +1,38 @@
---
name: Automatic Release
on:
push:
tags:
- 'v*.*.*'

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Export tag to env
run: |
GIT_TAG=$(echo ${GITHUB_REF#refs/*/} | cut -d 'v' -f 2)
echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '14.x'

- name: Install dependencies
run: yarn install

- name: Create vsix
run: |
yarn run package -o daffodil-debug-${{env.GIT_TAG}}.vsix
- name: Create release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
${{github.workspace}}/daffodil-debug-${{env.GIT_TAG}}.vsix

This file was deleted.

0 comments on commit c2d9bf4

Please sign in to comment.