1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-01 09:10:37 +00:00

Add win file deletion

This commit is contained in:
Luke Ceddia 2021-02-02 21:02:55 +11:00
parent 3ed73b2cfe
commit eb5d78194b
No known key found for this signature in database
GPG key ID: 319344384A0759B0
2 changed files with 16 additions and 30 deletions

View file

@ -6,4 +6,8 @@ set TIMEX=%TIME: =0%
set archive=qb64_%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2%-%TIMEX:~0,2%-%TIMEX:~3,2%-%TIMEX:~6,2%_%GITHUB_SHA:~0,7%_win-%PLATFORM%.7z
7z a -xr@qb64\.ci\common-exclusion.list -xr@qb64\.ci\win-exclusion.list %archive% qb64
aws --output text --query 'Contents[].Key' s3api list-objects --bucket %BUCKET% --prefix win-%PLATFORM% > olddevbuilds.txt
aws s3 cp %archive% s3://%BUCKET%/win-%PLATFORM%/
for /F "tokens=*" %%G in (olddevbuilds.txt) do aws s3 rm s3://%BUCKET%/%%G

View file

@ -7,7 +7,7 @@ on:
jobs:
linux-build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci-skip')"
if: "contains(github.event.head_commit.message, 'ci-skip')"
steps:
- uses: actions/checkout@v2
- name: Install dependencies
@ -38,7 +38,7 @@ jobs:
macos-build:
runs-on: macos-latest
if: "!contains(github.event.head_commit.message, 'ci-skip')"
if: "contains(github.event.head_commit.message, 'ci-skip')"
steps:
- uses: actions/checkout@v2
- name: Bootstrap compiler
@ -85,35 +85,17 @@ jobs:
PLATFORM: x64
steps:
- uses: actions/checkout@v2
#- name: Bootstrap compiler
#run: .ci/bootstrap.bat
#- name: Compile
#run: .ci/compile.bat
- name: Set deployment SSH key
- name: Bootstrap compiler
run: .ci/bootstrap.bat
- name: Compile
run: .ci/compile.bat
- name: Setup aws
if: github.event_name == 'push'
uses: shimataro/ssh-key-action@v2.1.0
uses: aws-actions/configure-aws-credentials@v1
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
config: |
Host remote-server
HostName qb64.org
User m6rosupy1q2t
- name: Download
run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip
- name: Extract
run: Expand-Archive ngrok.zip
- name: Auth
run: .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN
env:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
- name: Enable TS
run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0
- run: Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
- run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1
- run: Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -AsPlainText "P@ssw0rd!" -Force)
- name: Create Tunnel
run: .\ngrok\ngrok.exe tcp 3389
- name: Package and deploy
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Publish to S3
if: github.event_name == 'push'
run: .ci/deploy.bat