Skip to content

Commit

Permalink
excluded test files in release
Browse files Browse the repository at this point in the history
  • Loading branch information
LWJ-Nicholas committed Feb 5, 2024
1 parent 306f157 commit 0d907ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/PullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: LWJ-Nicholas/DevOps_Oct2023_TeamC_Assignment

- name: Install Library Dependencies
run: |
python -m pip install --upgrade pip
Expand Down
19 changes: 4 additions & 15 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: assetDocuments
path: downloads
paths: |
- "downloads"
- "!downloads/test_*"
- name: Set environment version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
Expand All @@ -74,8 +76,6 @@ jobs:
- name: Archive site content
uses: thedoctor0/zip-release@master
with:
exclude_files: |
test_*
filename: content.zip

- name: upload release asset
Expand All @@ -86,15 +86,4 @@ jobs:
upload_url: ${{ steps.create-new-release.outputs.upload_url }}
asset_path: ./content.zip
asset_name: ${{ env.RELEASE_VERSION }}.zip
asset_content_type: applications/zip

- name: Build
run: |
python main.py &
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site

asset_content_type: applications/zip

0 comments on commit 0d907ee

Please sign in to comment.