mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-13 14:46:21 +00:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e55ea6a83a | ||
|
|
481196de9b | ||
|
|
a136dbd3f9 | ||
|
|
8d23349dac | ||
|
|
a7caa46156 | ||
|
|
39cd3faae2 | ||
|
|
bdaa8e602f | ||
|
|
26490103a9 | ||
|
|
56b07784d5 | ||
|
|
4544c689a5 | ||
|
|
8a7a4b4127 |
79
.github/workflows/firebase-release.yml
vendored
79
.github/workflows/firebase-release.yml
vendored
@@ -1,59 +1,58 @@
|
|||||||
name: Deploy to Firebase Hosting on merge
|
name: Deploy to Firebase Hosting
|
||||||
'on':
|
'on':
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
jobs:
|
jobs:
|
||||||
# build_and_deploy:
|
build_and_deploy:
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# env:
|
env:
|
||||||
# REPO_READ_ACCESS_TOKEN: ${{ secrets.REPO_READ_ACCESS_TOKEN }}
|
REPO_READ_ACCESS_TOKEN: ${{ secrets.REPO_READ_ACCESS_TOKEN }}
|
||||||
# steps:
|
steps:
|
||||||
# - name: Checkout repository
|
- name: Checkout repository
|
||||||
# uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# - name: Setup bun
|
- name: Setup bun
|
||||||
# uses: oven-sh/setup-bun@v1
|
uses: oven-sh/setup-bun@v1
|
||||||
|
|
||||||
# - name: Build, lint, and deploy
|
- name: Build, lint, and deploy
|
||||||
# run: |
|
run: |
|
||||||
# bun install
|
bun install
|
||||||
# bun run build
|
bun run build
|
||||||
# bun run lint
|
bun run lint
|
||||||
# - name: Deploy to Firebase Hosting
|
- name: Deploy to Firebase Hosting
|
||||||
# uses: FirebaseExtended/action-hosting-deploy@v0
|
uses: FirebaseExtended/action-hosting-deploy@v0
|
||||||
# with:
|
with:
|
||||||
# repoToken: '${{ secrets.GITHUB_TOKEN }}'
|
repoToken: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
# firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_LIFE_TRINKET }}'
|
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_LIFE_TRINKET }}'
|
||||||
# channelId: live
|
channelId: live
|
||||||
# projectId: life-trinket
|
projectId: life-trinket
|
||||||
|
|
||||||
release:
|
release:
|
||||||
# needs: build_and_deploy
|
needs: build_and_deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
working-directory: ${{ github.workspace }}
|
||||||
steps:
|
steps:
|
||||||
- name: Extract version from package.json
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: get version
|
||||||
id: version
|
id: version
|
||||||
run: echo "::set-output name=version::$(jq -r .version package.json)"
|
uses: notiz-dev/github-action-json-property@v0.2.0
|
||||||
|
|
||||||
|
with:
|
||||||
|
path: 'package.json'
|
||||||
|
prop_path: 'version'
|
||||||
|
|
||||||
- name: Create Release Note
|
- name: Create Release Note
|
||||||
id: create_release_note
|
id: create_release_note
|
||||||
run: echo "Release Note for version ${{ steps.version.outputs.version }}" > release_note.txt
|
run: echo "Release Note for version ${{ steps.version.outputs.prop }}" > release_note.txt
|
||||||
|
|
||||||
# - name: Release
|
|
||||||
# uses: 'marvinpinto/action-automatic-releases@latest'
|
|
||||||
# with:
|
|
||||||
# repo_token: '${{ secrets.RELEASE_TOKEN }}'
|
|
||||||
# automatic_release_tag: 'latest'
|
|
||||||
# prerelease: true
|
|
||||||
# title: ${{ steps.version.outputs.version }}
|
|
||||||
# files: release_note.txt
|
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: ncipollo/release-action@v1.13.0
|
uses: ncipollo/release-action@v1.13.0
|
||||||
with:
|
with:
|
||||||
artifacts: 'path/to/artifact.tar.gz,another/path/to/artifact.txt' # Add your artifact paths
|
bodyFile: release_note.txt
|
||||||
body: 'Release notes for version ${{ steps.version.outputs.version }}' # Customize your release notes
|
commit: ${{ github.sha }}
|
||||||
commit: ${{ github.sha }} # Use the commit hash of the current workflow run
|
tag: '${{ steps.version.outputs.prop }}'
|
||||||
tag: '${{ steps.version.outputs.version }}' # Specify the tag for the release
|
token: ${{ secrets.RELEASE_TOKEN }}
|
||||||
token: ${{ secrets.RELEASE_TOKEN }} # GitHub token for authentication
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "life-trinket",
|
"name": "life-trinket",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.5.1",
|
"version": "0.5.4",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18",
|
"node": ">=18",
|
||||||
|
|||||||
Reference in New Issue
Block a user