Skip to content

Commit

Permalink
chore: πŸ€– disable auto publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ZingerLittleBee committed Oct 10, 2023
1 parent 8a42ee9 commit 83bbff0
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
#name: Publish CD
#
#on:
name: Publish CD

on:
# push:
# tags:
# - '*'
# workflow_dispatch:
#
#jobs:
# publish:
# name: Publish
# runs-on: ubuntu-latest
# steps:
# - name: Checkout πŸ›ŽοΈ
# uses: actions/checkout@v3
#
# - name: Install stable toolchain πŸ’Ώ
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# override: true
#
# - run: sudo apt-get -y update && sudo apt-get -y install libpcap-dev
#
# - uses: actions/setup-node@v3
# with:
# node-version: 18
# - uses: pnpm/action-setup@v2
# with:
# version: 8
# - name: Install dependencies and build
# run: |
# pnpm -C view install
# pnpm -C view build
#
# - name: Move view dist to target
# run: |
# mkdir -p target/package/view
# mv view/dist target/package/view/
#
# - name: Publish to crate πŸŽ‰
# run: cargo publish -p serverbee-web --token ${CRATES_TOKEN}
# env:
# CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
workflow_dispatch:

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3

- name: Install stable toolchain πŸ’Ώ
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- run: sudo apt-get -y update && sudo apt-get -y install libpcap-dev

- uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies and build
run: |
pnpm -C view install
pnpm -C view build
- name: Move view dist to target
run: |
mkdir -p target/package/view
mv view/dist target/package/view/
- name: Publish to crate πŸŽ‰
run: cargo publish -p serverbee-web --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

0 comments on commit 83bbff0

Please sign in to comment.