Skip to content

Rework config.ini path handling #761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 9, 2023
2 changes: 0 additions & 2 deletions .github/workflows/publish-go-tester-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,10 @@ jobs:
run: task go:build
if: runner.os == 'macOS'

# config.ini is required by the executable when it's run
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: arduino-create-agent-${{ matrix.os }}${{ matrix.arch }}
path: |
arduino-create-agent*
config.ini
if-no-files-found: error
6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,12 @@ jobs:
aws s3 sync public/ s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.OLD_TARGET }}
if: steps.prerelease.outputs.IS_PRE != 'true'

# config.ini is required by the executable when it's run
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ env.PROJECT_NAME }}-${{ matrix.os }}${{ matrix.arch }}
path: |
${{ env.PROJECT_NAME }}*
config.ini
if-no-files-found: error

create-macos-bundle:
Expand All @@ -164,10 +162,6 @@ jobs:
- name: Remove placeholder file
run: rm -rf ${{ env.EXE_PATH }}.empty

- name: Move config.ini to the Resources dir
working-directory: ${{ env.EXE_PATH }}
run: mv config.ini ../Resources/

# zip artifacts do not mantain executable permission
- name: Make executable
run: chmod -v +x ${{ env.EXE_PATH }}${{ env.PROJECT_NAME }}
Expand Down
Loading