-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve github actions release perfomance
- Loading branch information
1 parent
97af942
commit b368542
Showing
2 changed files
with
17 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,32 +20,10 @@ jobs: | |
run: | | ||
npm i -g pnpm | ||
pnpm i | ||
- name: Build App | ||
run: pnpm run build | ||
|
||
- name: Zip The Build | ||
uses: vimtor/action-zip@v1 | ||
with: | ||
files: dist/ | ||
dest: chat-client-uwu.zip | ||
|
||
- name: Deploy to Server | ||
uses: marcodallasanta/[email protected] | ||
with: | ||
local: 'chat-client-uwu.zip' | ||
remote: '/var/www/test.zip' | ||
host: ${{secrets.HOST}} | ||
user: ${{secrets.USER}} | ||
password: ${{secrets.PASS}} | ||
|
||
- name: unzip | ||
uses: appleboy/[email protected] | ||
- name: Publish Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USER }} | ||
password: ${{ secrets.PASS }} | ||
port: ${{ secrets.PORT }} | ||
script: | | ||
unzip -o /var/www/test.zip -d /var/www/test/ | ||
rm -rf /var/www/test.zip | ||
name: my-artifact | ||
path: dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,12 +48,23 @@ jobs: | |
- name: Deploy to Server | ||
uses: marcodallasanta/[email protected] | ||
with: | ||
local: 'dist/' # Local file path - REQUIRED false - DEFAULT ./ | ||
remote: '/var/www/nerimity.com/' # Remote file path - REQUIRED false - DEFAULT ~/ | ||
local: 'chat-client-${{ steps.get_version.outputs.VERSION }}.zip' # Local file path - REQUIRED false - DEFAULT ./ | ||
remote: '/var/www/chat-client-${{ steps.get_version.outputs.VERSION }}.zip' # Remote file path - REQUIRED false - DEFAULT ~/ | ||
host: ${{secrets.HOST}} # Remote server address - REQUIRED true | ||
user: ${{secrets.USER}} # Remote server user - REQUIRED true | ||
password: ${{secrets.PASS}} # User password - REQUIRED at least one of "password" or "key" | ||
|
||
- name: Unzip built | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USER }} | ||
password: ${{ secrets.PASS }} | ||
port: ${{ secrets.PORT }} | ||
script: | | ||
unzip -o /var/www/chat-client-${{ steps.get_version.outputs.VERSION }}.zip -d /var/www/nerimity.com/ | ||
rm -rf /var/www/chat-client-${{ steps.get_version.outputs.VERSION }}.zip | ||
- name: Publish Draft Release | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
|