mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Merge branch 'master' into github-actions
This commit is contained in:
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
@@ -1,6 +1,8 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
|
|
||||||
on: "workflow_dispatch"
|
on: "workflow_dispatch"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
# Test:
|
# Test:
|
||||||
@@ -26,7 +28,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Parsing Package Info
|
- name: Parsing Package Info
|
||||||
id: packageInfo
|
id: packageInfo
|
||||||
|
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=package-name::$(jq -r .name package.json)"
|
echo "::set-output name=package-name::$(jq -r .name package.json)"
|
||||||
echo "::set-output name=package-version::$(jq -r .version package.json)"
|
echo "::set-output name=package-version::$(jq -r .version package.json)"
|
||||||
@@ -40,6 +41,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build:all
|
run: npm run build:all
|
||||||
|
|
||||||
|
- name: Upload a Build Artifact
|
||||||
|
uses: actions/upload-artifact@v2.1.4
|
||||||
|
with:
|
||||||
|
name: baileysBuilt
|
||||||
|
path: |
|
||||||
|
docs/**/*
|
||||||
|
lib/**/*
|
||||||
|
package.json
|
||||||
|
|
||||||
|
|
||||||
- name: Upload a Build Artifact
|
- name: Upload a Build Artifact
|
||||||
@@ -57,6 +67,7 @@ jobs:
|
|||||||
needs: Build
|
needs: Build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Download Build Artifact
|
- name: Download Build Artifact
|
||||||
uses: actions/download-artifact@v2.0.5
|
uses: actions/download-artifact@v2.0.5
|
||||||
with:
|
with:
|
||||||
@@ -75,7 +86,7 @@ jobs:
|
|||||||
|
|
||||||
Publish-Package:
|
Publish-Package:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
|
if: github.ref == 'refs/heads/master'
|
||||||
needs: Build
|
needs: Build
|
||||||
steps:
|
steps:
|
||||||
- name: Download Build Artifact
|
- name: Download Build Artifact
|
||||||
|
|||||||
Reference in New Issue
Block a user