ItzLevvie / MicrosoftTeams-msinternal

This project was created from PowerShell which allows people to download the latest internal build of Microsoft Teams.
486 stars 30 forks source link

Use GitHub Actions #4

Closed KygekDev closed 2 years ago

KygekDev commented 2 years ago

You can use GitHub Actions to automatically update and commit the defconfig and defconfig2 files periodically instead of updating and committing it manually.

ItzLevvie commented 2 years ago

This is currently on the backlog.

edirimkus commented 2 years ago

can you please explant how i can run it from github actions please

ItzLevvie commented 2 years ago

can you please explant how i can run it from github actions please

You can use windows-2022 in GitHub Actions.

Here is an example:

name: MicrosoftTeams-msinternal (prod)

on:
  push:
    branches:
      - master
  schedule:
    - cron: "*/5 * * * *"
  workflow_dispatch:

jobs:
  publish:
    runs-on: windows-2022
    defaults:
      run:
        shell: cmd

    steps:
      - uses: actions/checkout@v2.4.0

      - uses: actions/setup-node@v2.5.0
        with:
          node-version: 17.3.0

      - run: |
          tools\v2.0\launch-debug.bat > defconfig2

      - run: |
          git config --local core.autocrlf true
          git config --local user.name "Microsoft GitHub User"
          git config --local user.email msftgits@microsoft.com

      - run: |
          git add .
          git commit --message "Update to the latest Electron + WebView2 builds"
          git push
nutterthanos commented 2 years ago

only problem of github-actions is that the artifacts expire

KygekDev commented 2 years ago

only problem of github-actions is that the artifacts expire

But we don't need to use artifacts in this repo...

nutterthanos commented 2 years ago

only problem of github-actions is that the artifacts expire

But we don't need to use artifacts in this repo...

oh right

ItzLevvie commented 2 years ago

This has now been implemented.