Skip to content

Github action to ease deletion of files on Appstage.io project live builds release

Notifications You must be signed in to change notification settings

appstage-io/delete-files-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Appstage.io Delete Files Github Action

GitHub Release

Github action to ease deletion of multiple files on Appstage.io project live builds.

Usage

Add appstage-actions to the workflow to upload your new ipa or apk build to appstage. The below example builds an iOS installer using fastlane then deletes the previous ipa before uploading the new build to appstage.io:-

name: "Build and Publish iOS"
on:
  push:
   branches: [ "master" ]

jobs:
  build:
    runs-on: macos-latest
    timeout-minutes: 30
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

      - name: Update dependencies
        run: |
          bundle
          bundle update fastlane
          pod repo update

      - name: Build ipa with fastlane
        id: build_ipa
        run: bundle exec fastlane beta

      - name: List current files on Appstage.io
        uses: appstage-io/list-files-action@master
        with:
          token: ${{ secrets.APPSTAGE_JWT }}

      - name: Delete old ipa from Appstage.io
        uses: appstage-io/delete-files-action@master
        with:
          token: ${{ secrets.APPSTAGE_JWT }}
          pattern: '.ipa'

      - name: Deploy new ipa to Appstage.io
        uses: Appstage-io/actions/upload-files@master
        with:
          token: ${{ secrets.APPSTAGE_JWT }}
          folder: './build'
          pattern: '.ipa'

Delete files

Description

Delete all files matching the pattern on the Live builds release on Appstage.io.

Example

- name: Deploy new ipa's to Appstage.io
  uses: Appstage-io/actions/delete-files@master
  with:
    token: ${{ secrets.APPSTAGE_JWT }}
    pattern: '.ipa'

Inputs

Input Required? Default Description
token true Project Access Token
pattern false .* A regex pattern of files to delete

About

Github action to ease deletion of files on Appstage.io project live builds release

Resources

Stars

Watchers

Forks

Packages

No packages published