Skip to content

Commit

Permalink
add release to workflow, no need to change permissions on load to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
smnorris committed Mar 5, 2024
1 parent 01f8d1c commit 06d220a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/bcfishpass-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,14 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run the jobs
run: jobs/bcfishpass03_model
run: jobs/bcfishpass03_model
release:
runs-on: ubuntu-latest
environment: production
container: ghcr.io/smnorris/bcfishpass:main
needs: model
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run the jobs
run: jobs/freshwater_fish_habitat_accessibility_model
6 changes: 1 addition & 5 deletions jobs/freshwater_fish_habitat_accessibility_model
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,4 @@ sozip \
freshwater_fish_habitat_accessibility_MODEL.gpkg.zip \
freshwater_fish_habitat_accessibility_MODEL.gpkg

aws s3 cp freshwater_fish_habitat_accessibility_MODEL.gpkg.zip s3://bcfishpass
aws s3api put-object-acl \
--bucket bcfishpass \
--key freshwater_fish_habitat_accessibility_MODEL.gpkg.zip \
--acl public-read
aws s3 cp freshwater_fish_habitat_accessibility_MODEL.gpkg.zip s3://bcfishpass

0 comments on commit 06d220a

Please sign in to comment.