Skip to content

Commit

Permalink
👷 ci: add conosle log version (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jian-Min-Huang committed Jul 27, 2022
1 parent f44d6e9 commit 5ea9cb1
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/CODEOWNERS

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PR

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: self-hosted

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node 16
uses: actions/setup-node@v3
with:
node-version: v16
cache: 'npm'
- name: npm install
run: npm install
- name: npm run lint
run: npm run lint
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ jobs:
run: npm run build:prod
- name: deploy
run: sh deploy.sh
env:
GITHUB_REF_NAME: ${{ github.GITHUB_REF_NAME }}
2 changes: 2 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ rm -rf /var/www/html/js
rm -f /var/www/html/favicon.svg
rm -f /var/www/html/index.html

sed -i "s/<body>/<body><script>console.log(\"> pheme --version\");console.log(\"$GITHUB_REF_NAME\");<\/script>/g" index.html

mv dist/css /var/www/html
mv dist/img /var/www/html
mv dist/js /var/www/html
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pheme.social",
"version": "0.1.0",
"version": "1.0.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --mode development",
Expand Down

0 comments on commit 5ea9cb1

Please sign in to comment.