Merge branch 'master' into github-actions

This commit is contained in:
AZMCode
2020-08-30 09:15:07 -04:00
committed by GitHub

View File

@@ -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)"
@@ -41,6 +42,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
uses: actions/upload-artifact@v2.1.4 uses: actions/upload-artifact@v2.1.4
@@ -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