Skip to content

Commit

Permalink
Merge pull request #17 from opentofu/workflow-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yantrio authored Nov 16, 2023
2 parents 694c952 + a9dcb8e commit f217734
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bump-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version-file: './src/go.mod'

- name: Run version bump script
working-directory: ./src
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/generate-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version-file: './src/go.mod'

- name: Setup dependencies
run: sudo apt-get install rclone

- name: Run Generation script
working-directory: ./src
run: go run ./cmd/generate-v1
run: go run ./cmd/generate-v1 --destination ../generated

- name: Sync Data to R2
run: rclone sync ./generated r2:${{ secrets.R2_BUCKET_NAME }}
run: rclone sync ./generated R2:${{ secrets.R2_BUCKET_NAME }}
env:
# R2 credentials should be stored as GitHub secrets
RCLONE_CONFIG_R2_TYPE: s3
Expand Down

0 comments on commit f217734

Please sign in to comment.