-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3df2b38
commit 4e6c4ab
Showing
1 changed file
with
7 additions
and
12 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 |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
name: Dependencies | ||
path: dependencies.txt | ||
- name: List Dependency Updates | ||
run: npm outdated > dependencieupdates.txt || true | ||
run: npm outdated > dependencyUpdates.txt || true | ||
shell: bash | ||
- name: Collect Dependency Updates | ||
uses: actions/upload-artifact@v2 | ||
|
@@ -39,12 +39,15 @@ jobs: | |
run: npm test || true | ||
shell: bash | ||
- name: Build | ||
run: '# npm run build' | ||
run: |- | ||
# package.json does not define a build script, so the build command is commented out. | ||
# npm run build | ||
shell: bash | ||
- name: Package | ||
run: |- | ||
SOURCEPATH=. | ||
OUTPUTPATH=. | ||
# If there is a build directory, assume that is what we want to package | ||
if [[ -d "build" ]]; then | ||
SOURCEPATH=build | ||
OUTPUTPATH=... | ||
|
@@ -72,14 +75,6 @@ jobs: | |
--include '**/*.txt' \ | ||
--include '**/*.Procfile' | ||
shell: bash | ||
- id: get_artifact | ||
name: Get Artifact Path | ||
run: echo "::set-output name=artifact::RandomQuotes-JS.${{ steps.determine_version.outputs.semVer }}.zip" | ||
shell: bash | ||
- id: get_artifact_name | ||
name: Get Artifact Name | ||
run: echo "::set-output name=artifact::RandomQuotes-JS.${{ steps.determine_version.outputs.semVer }}.zip" | ||
shell: bash | ||
- env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
id: create_release | ||
|
@@ -96,8 +91,8 @@ jobs: | |
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ${{ steps.get_artifact.outputs.artifact }} | ||
asset_name: ${{ steps.get_artifact_name.outputs.artifact }} | ||
asset_path: RandomQuotes-JS.${{ steps.determine_version.outputs.semVer }}.zip | ||
asset_name: RandomQuotes-JS.${{ steps.determine_version.outputs.semVer }}.zip | ||
asset_content_type: application/octet-stream | ||
- name: Push to Octopus | ||
uses: OctopusDeploy/[email protected] | ||
|