Skip to content

Commit

Permalink
Update github flows
Browse files Browse the repository at this point in the history
  • Loading branch information
tmjo committed Feb 21, 2023
1 parent 5fb69b3 commit 9f0f405
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github: [iantrich]
github: [tmjo]
36 changes: 18 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: 'Build'
# name: 'Build'

on:
push:
branches:
- master
pull_request:
branches:
- master
# on:
# push:
# branches:
# - master
# pull_request:
# branches:
# - master

jobs:
build:
name: Test build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build
run: |
npm install
npm run build
# jobs:
# build:
# name: Test build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: Build
# run: |
# npm install
# npm run build
50 changes: 25 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: Release
# name: Release

on:
release:
types: [published]
# on:
# release:
# types: [published]

jobs:
release:
name: Prepare release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
# jobs:
# release:
# name: Prepare release
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1

# Build
- name: Build the file
run: |
cd /home/runner/work/charger-card/charger-card
npm install
npm run build
# # Build
# - name: Build the file
# run: |
# cd /home/runner/work/charger-card/charger-card
# npm install
# npm run build

# Upload build file to the releas as an asset.
- name: Upload zip to release
uses: svenstaro/upload-release-action@v1-release
# # Upload build file to the releas as an asset.
# - name: Upload zip to release
# uses: svenstaro/upload-release-action@v1-release

with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: /home/runner/work/charger-card/charger-card/dist/charger-card.js
asset_name: charger-card.js
tag: ${{ github.ref }}
overwrite: true
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: /home/runner/work/charger-card/charger-card/dist/charger-card.js
# asset_name: charger-card.js
# tag: ${{ github.ref }}
# overwrite: true

0 comments on commit 9f0f405

Please sign in to comment.